Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Dbus-Socket Not Found When Starting Firefox in Firejail (Read 767 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Dbus-Socket Not Found When Starting Firefox in Firejail

i have a fresh install of artix/openrc, wayland, wlroots, wayfire, sddm.

As on archlinux i run Firefox by

Code: [Select]
MOZ_ENABLE_WAYLAND=1 firejail --private=~/sandbox --apparmor firefox
   
and get the following
   
Quote
Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/firefox-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-proc.inc
Reading profile /etc/firejail/disable-programs.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-var-common.inc
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
DBus user socket was not found.
No proxies specified

Firefox does not start, its an known issue.
is there any solution meanwhile?

A workaround may be commenting out

Code: [Select]
ignore dbus-user none

in firefox.profile, firefox-common.profile unchanged. Is this secure?

Re: Dbus-Socket Not Found When Starting Firefox in Firejail

Reply #1
Code: [Select]
$ echo $DBUS_SESSION_BUS_ADDRESS
shows an empty line

Code: [Select]
# ls -alR /run/user/1000/dbus-1
/run/user/1000/dbus-1:
insgesamt 0
drwx------  3 andreas andreas  60 28. Feb 11:47 .
drwx------ 11 andreas andreas 260 28. Feb 11:49 ..
drwx------  2 andreas andreas  40 28. Feb 11:47 services

/run/user/1000/dbus-1/services:
insgesamt 0
drwx------ 2 andreas andreas 40 28. Feb 11:47 .
drwx------ 3 andreas andreas 60 28. Feb 11:47 ..

shows now socket

So i tried dbus-launch in  start-command and firefox started

Code: [Select]
$MOZ_ENABLE_WAYLAND=1 dbus-launch firejail --private=~/sandbox --apparmor firefox
Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/firefox-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-proc.inc
Reading profile /etc/firejail/disable-programs.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-var-common.inc
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 3846, child pid 3853
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Warning: cleaning all supplementary groups
Warning: Replacing profile instead of stacking it. It is a legacy behavior that can result in relaxation of the protection. It is here as a temporary measure to unbreak the software that has been broken by switching to the stacking behavior.
Child process initialized in 238.59 ms
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.