[GH-ISSUE #5963] brave: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied #3143

Closed
opened 2026-05-05 09:46:34 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @rdbeni0 on GitHub (Aug 19, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5963

Hello everyone,

when i run the command firejail brave then i get ugly output:

Reading profile /etc/firejail/brave.profile
Reading profile /home/rdbeni0/.config/firejail/brave.local
Reading profile /etc/firejail/chromium-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 2903, child pid 2904
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Child process initialized in 150.37 ms
[6:25:0819/144735.713189:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:36:0819/144736.553034:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:36:0819/144736.553101:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:6:0819/144736.729986:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[6:6:0819/144736.730015:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd5 (isEnabled)
[6:6:0819/144736.730482:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[6:6:0819/144736.730504:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd5
[6:6:0819/144736.881953:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[6:6:0819/144736.881975:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd5 (close)
[6:6:0819/144736.884152:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.
[6:6:0819/144736.943015:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image.
[6:6:0819/144736.943091:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image.
[6:6:0819/144736.943153:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image.
[6:6:0819/144736.943213:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image.
[6:124:0819/144737.025129:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:124:0819/144737.025176:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:124:0819/144737.025231:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:124:0819/144737.025263:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
[6:124:0819/144737.025291:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied

cat /home/rdbeni0/.config/firejail/brave.local

noblacklist ${RUNUSER}/app

Except that - everything is working, so I did not notice any special problems with the brave browser. As I am a perfectionist, I would like to understand and fix this problem. What can I do to supress this error - Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied?

is this related to KDE wallet (which I have disabled)?

when i run just brave command, there is no such problem.

OS: latest Arch Linux with KDE and wayland, brave from AUR

Originally created by @rdbeni0 on GitHub (Aug 19, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/5963 Hello everyone, when i run the command *firejail brave* then i get ugly output: ``` Reading profile /etc/firejail/brave.profile Reading profile /home/rdbeni0/.config/firejail/brave.local Reading profile /etc/firejail/chromium-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 2903, child pid 2904 Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Child process initialized in 150.37 ms [6:25:0819/144735.713189:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:36:0819/144736.553034:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:36:0819/144736.553101:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:6:0819/144736.729986:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying [6:6:0819/144736.730015:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd5 (isEnabled) [6:6:0819/144736.730482:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files [6:6:0819/144736.730504:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd5 [6:6:0819/144736.881953:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying [6:6:0819/144736.881975:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd5 (close) [6:6:0819/144736.884152:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled. [6:6:0819/144736.943015:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image. [6:6:0819/144736.943091:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image. [6:6:0819/144736.943153:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image. [6:6:0819/144736.943213:ERROR:profile_attributes_storage.cc(894)] Failed to PNG encode the image. [6:124:0819/144737.025129:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:124:0819/144737.025176:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:124:0819/144737.025231:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:124:0819/144737.025263:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied [6:124:0819/144737.025291:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied ``` cat /home/rdbeni0/.config/firejail/brave.local ``` noblacklist ${RUNUSER}/app ``` Except that - everything is working, so I did not notice any special problems with the brave browser. As I am a perfectionist, I would like to understand and fix this problem. What can I do to supress this error - *Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied*? is this related to KDE wallet (which I have disabled)? when i run just `brave` command, there is no such problem. OS: latest Arch Linux with KDE and wayland, `brave` from AUR
gitea-mirror 2026-05-05 09:46:34 -06:00
  • closed this issue
  • added the
    notabug
    label
Author
Owner

@rusty-snake commented on GitHub (Aug 19, 2023):

I would like to understand and fix this problem. What can I do to supress this error

ignore dbus-system none

but note that this weaks the sandbox.

<!-- gh-comment-id:1684939635 --> @rusty-snake commented on GitHub (Aug 19, 2023): > I would like to understand and fix this problem. What can I do to supress this error `ignore dbus-system none` but note that this weaks the sandbox.
Author
Owner

@rdbeni0 commented on GitHub (Aug 19, 2023):

Thanks. This rule is working.

Now the output is much cleaner:

Reading profile /etc/firejail/brave.profile
Reading profile /home/rdbeni0/.config/firejail/brave.local
Reading profile /etc/firejail/chromium-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 7785, child pid 7786
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Child process initialized in 138.35 ms
[6:6:0819/151024.875434:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[6:6:0819/151024.875510:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd5 (isEnabled)
[6:6:0819/151024.876131:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[6:6:0819/151024.876158:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd5
[6:6:0819/151024.995025:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[6:6:0819/151024.995062:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd5 (close)

is there any solution which will not "weaks the sandbox."?

<!-- gh-comment-id:1684940868 --> @rdbeni0 commented on GitHub (Aug 19, 2023): Thanks. This rule is working. Now the output is much cleaner: ``` Reading profile /etc/firejail/brave.profile Reading profile /home/rdbeni0/.config/firejail/brave.local Reading profile /etc/firejail/chromium-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 7785, child pid 7786 Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Child process initialized in 138.35 ms [6:6:0819/151024.875434:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying [6:6:0819/151024.875510:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd5 (isEnabled) [6:6:0819/151024.876131:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files [6:6:0819/151024.876158:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd5 [6:6:0819/151024.995025:ERROR:object_proxy.cc(590)] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying [6:6:0819/151024.995062:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd5 (close) ``` is there any solution which will **not** "weaks the sandbox."?
Author
Owner

@rusty-snake commented on GitHub (Aug 19, 2023):

is there any solution which will not "weaks the sandbox."?

Edit the source code of brave and remove the prints 🤐.

Either you allow it or chrom* will log a error because it can not initiate the connection to the system bus.

<!-- gh-comment-id:1684942501 --> @rusty-snake commented on GitHub (Aug 19, 2023): > is there any solution which will not "weaks the sandbox."? Edit the source code of brave and remove the prints :zipper_mouth_face:. Either you allow it or chrom\* will log a error because it can not initiate the connection to the system bus.
Author
Owner

@rdbeni0 commented on GitHub (Aug 19, 2023):

Ok, thanks. Topic is closed.

<!-- gh-comment-id:1684943222 --> @rdbeni0 commented on GitHub (Aug 19, 2023): Ok, thanks. Topic is closed.
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#3143
No description provided.