[GH-ISSUE #2101] Firejail breaks evince printing #1421

Closed
opened 2026-05-05 08:05:14 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @matu3ba on GitHub (Aug 30, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2101

Ubuntu 18.04.1 LTS
firejail version 0.9.56~rc1
GNOME-Dokumentenbetrachter 3.28.2

firejail --noprofile evince does not work as well,
but sudo firecfg --clean makes evince possible to print again.

To that regard uncommenting nodbus makes no difference (for me).
From the issue #1843 or commit 7a37dc31ab only
-# blacklist /run/user/*/bus was removed and
+# nodbus added.
Did anybody have issues or can reason about why dbus was not removed in the first place?

Originally created by @matu3ba on GitHub (Aug 30, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2101 Ubuntu 18.04.1 LTS firejail version 0.9.56~rc1 GNOME-Dokumentenbetrachter 3.28.2 `firejail --noprofile evince` does not work as well, but `sudo firecfg --clean` makes evince possible to print again. To that regard uncommenting `nodbus` makes no difference (for me). From the issue #1843 or commit 7a37dc31ab907d55eb88f2fa259f37046952a0c5 only `-# blacklist /run/user/*/bus` was removed and `+# nodbus` added. Did anybody have issues or can reason about why dbus was not removed in the first place?
Author
Owner

@SkewedZeppelin commented on GitHub (Aug 30, 2018):

Can you clarify?
Can you run each of the following and confirm whether you can print on not?

firejail /usr/bin/evince
firejail --noprofile /usr/bin/evince
sudo firecfg && sudo -k && evince
<!-- gh-comment-id:417503083 --> @SkewedZeppelin commented on GitHub (Aug 30, 2018): Can you clarify? Can you run each of the following and confirm whether you can print on not? ``` firejail /usr/bin/evince firejail --noprofile /usr/bin/evince sudo firecfg && sudo -k && evince ```
Author
Owner

@matu3ba commented on GitHub (Aug 30, 2018):

The printing dialog opens, however no installed and connected printer device is found.
Running neither of the commands did show up the according printer device.

In comparison okular works like expected.

<!-- gh-comment-id:417504439 --> @matu3ba commented on GitHub (Aug 30, 2018): The printing dialog opens, however no installed and connected printer device is found. Running neither of the commands did show up the according printer device. In comparison okular works like expected.
Author
Owner

@matu3ba commented on GitHub (Aug 30, 2018):

Do the following messages help? They occur in each of the commands [and # nodbus is used], so dbus use should work.
GLib-GIO-CRITICAL **: 23:49:32.556: g_dbus_proxy_new_sync: assertion G_IS_DBUS_CONNECTION (connection)' failed
** (evince:161): WARNING **: Connection failed: No authorization
** (evince:161): WARNING **: Couldn't connect to D-Bus system bus, Connection failed: No authorization

<!-- gh-comment-id:417505103 --> @matu3ba commented on GitHub (Aug 30, 2018): Do the following messages help? They occur in each of the commands [and `# nodbus` is used], so dbus use should work. GLib-GIO-CRITICAL **: 23:49:32.556: g_dbus_proxy_new_sync: assertion G_IS_DBUS_CONNECTION (connection)' failed ** (evince:161): WARNING **: Connection failed: No authorization ** (evince:161): WARNING **: Couldn't connect to D-Bus system bus, Connection failed: No authorization
Author
Owner

@Vincent43 commented on GitHub (Aug 31, 2018):

Is evince confined by AppArmor? You may check with sudo aa-status.

<!-- gh-comment-id:417642136 --> @Vincent43 commented on GitHub (Aug 31, 2018): Is evince confined by AppArmor? You may check with `sudo aa-status`.
Author
Owner

@matu3ba commented on GitHub (Sep 1, 2018):

sudo aa-status
apparmor module is loaded.
25 profiles are loaded.
23 profiles are in enforce mode.
/sbin/dhclient
/usr/bin/evince
/usr/bin/evince-previewer
/usr/bin/evince-previewer//sanitized_helper
/usr/bin/evince-thumbnailer
/usr/bin/evince-thumbnailer//sanitized_helper
/usr/bin/evince//sanitized_helper
/usr/bin/man
/usr/lib/NetworkManager/nm-dhcp-client.action
/usr/lib/NetworkManager/nm-dhcp-helper
/usr/lib/connman/scripts/dhclient-script
/usr/lib/cups/backend/cups-pdf
/usr/lib/lightdm/lightdm-guest-session
/usr/lib/lightdm/lightdm-guest-session//chromium
/usr/sbin/cupsd
/usr/sbin/cupsd//third_party
/usr/sbin/tcpdump
libreoffice-senddoc
libreoffice-senddoc//sanitized_helper
libreoffice-soffice//gpg
libreoffice-xpdfimport
man_filter
man_groff
2 profiles are in complain mode.
libreoffice-oopslash
libreoffice-soffice
2 processes have profiles defined.
2 processes are in enforce mode.
/sbin/dhclient (962)
/usr/sbin/cupsd (2634)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
Yes, it is. How do I fix this? Is this not tested during call of firecfg ?

<!-- gh-comment-id:417848881 --> @matu3ba commented on GitHub (Sep 1, 2018): `sudo aa-status` apparmor module is loaded. 25 profiles are loaded. 23 profiles are in enforce mode. /sbin/dhclient /usr/bin/evince /usr/bin/evince-previewer /usr/bin/evince-previewer//sanitized_helper /usr/bin/evince-thumbnailer /usr/bin/evince-thumbnailer//sanitized_helper /usr/bin/evince//sanitized_helper /usr/bin/man /usr/lib/NetworkManager/nm-dhcp-client.action /usr/lib/NetworkManager/nm-dhcp-helper /usr/lib/connman/scripts/dhclient-script /usr/lib/cups/backend/cups-pdf /usr/lib/lightdm/lightdm-guest-session /usr/lib/lightdm/lightdm-guest-session//chromium /usr/sbin/cupsd /usr/sbin/cupsd//third_party /usr/sbin/tcpdump libreoffice-senddoc libreoffice-senddoc//sanitized_helper libreoffice-soffice//gpg libreoffice-xpdfimport man_filter man_groff 2 profiles are in complain mode. libreoffice-oopslash libreoffice-soffice 2 processes have profiles defined. 2 processes are in enforce mode. /sbin/dhclient (962) /usr/sbin/cupsd (2634) 0 processes are in complain mode. 0 processes are unconfined but have a profile defined. Yes, it is. How do I fix this? Is this not tested during call of `firecfg` ?
Author
Owner

@Vincent43 commented on GitHub (Sep 1, 2018):

The only thing firecfg does is making symlink from evince to firejail. You have to decide if you prefer using AppAmor or firejail to sandbox evince and disable the other one.

<!-- gh-comment-id:417852845 --> @Vincent43 commented on GitHub (Sep 1, 2018): The only thing `firecfg` does is making symlink from evince to firejail. You have to decide if you prefer using AppAmor or firejail to sandbox evince and disable the other one.
Author
Owner

@matu3ba commented on GitHub (Sep 1, 2018):

@Vincent43 Thanks alot.
Curiously evince with printing also works with the option nodbus enabled (so dbus disabled).

<!-- gh-comment-id:417854818 --> @matu3ba commented on GitHub (Sep 1, 2018): @Vincent43 Thanks alot. Curiously evince with printing also works with the option `nodbus` enabled (so dbus disabled).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1421
No description provided.