[GH-ISSUE #4715] firefox: cannot run without X11 abstract sockets #2765

Open
opened 2026-05-05 09:25:39 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @placidchat on GitHub (Nov 26, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4715

Description

Running firefox 94 with no X11 abstract sockets fails

Steps to Reproduce

  1. Disable X11 abstract sockets, and use only unix domain sockets
  2. Create a lightdm config file in /etc/lightdm/lightdm.d : do
    [Seat:*] xserver-command=X -nolisten local
  3. Restart and login
  4. ss -lp | grep X11
  5. observe that there are no @ abstract sockets
  6. firejail --profile=firefox firefox
  7. There is an error message
    Unable to create Xauthority file

Additional context

  1. firejail --profile=firefox xeyes works fine, so it isn't purely a firejail issue

Environment

ubuntu 20.04

Originally created by @placidchat on GitHub (Nov 26, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4715 ### Description Running firefox 94 with no X11 abstract sockets fails ### Steps to Reproduce 1. Disable X11 abstract sockets, and use only unix domain sockets 2. Create a lightdm config file in /etc/lightdm/lightdm.d : do `[Seat:*] xserver-command=X -nolisten local ` 3. Restart and login 4. `ss -lp | grep X11` 5. observe that there are no @ abstract sockets 6. firejail --profile=firefox firefox 7. There is an error message `Unable to create Xauthority file` ### Additional context 1. firejail --profile=firefox xeyes works fine, so it isn't purely a firejail issue ### Environment ubuntu 20.04
Author
Owner

@placidchat commented on GitHub (Nov 26, 2021):

Slight mistake
firejail --profile=firefox --x11=xorg firefox --no-remote gives the error

DISPLAY=:0.0 parsed as 0
Generating a new .Xauthority file
Drop privileges: pid 5, uid 1002, gid 1002, nogroups 1
No supplementary groups
Using authority file /tmp/.tmpXauth-RLK1Oh
/usr/bin/xauth: (argv):1: unable to open display ":0.0".
Failed to create untrusted X cookie: xauth: exit 1
Error: proc 8574 cannot sync with peer: unexpected EOF
Peer 8575 unexpectedly exited with status 1

whereas firejail --profile=firefox firefox seems to work fine. Isn't the default supposed to be --x11=xorg to begin with ?

<!-- gh-comment-id:979710127 --> @placidchat commented on GitHub (Nov 26, 2021): Slight mistake `firejail --profile=firefox --x11=xorg firefox --no-remote ` gives the error > DISPLAY=:0.0 parsed as 0 > Generating a new .Xauthority file > Drop privileges: pid 5, uid 1002, gid 1002, nogroups 1 > No supplementary groups > Using authority file /tmp/.tmpXauth-RLK1Oh > /usr/bin/xauth: (argv):1: unable to open display ":0.0". > Failed to create untrusted X cookie: xauth: exit 1 > Error: proc 8574 cannot sync with peer: unexpected EOF > Peer 8575 unexpectedly exited with status 1 whereas `firejail --profile=firefox firefox ` seems to work fine. Isn't the default supposed to be `--x11=xorg` to begin with ?
Author
Owner

@placidchat commented on GitHub (Nov 27, 2021):

My mistake firejail --profile=firefox --x11=xorg xeyes fails as well.

<!-- gh-comment-id:980504725 --> @placidchat commented on GitHub (Nov 27, 2021): My mistake `firejail --profile=firefox --x11=xorg xeyes` fails as well.
Author
Owner

@rusty-snake commented on GitHub (Nov 27, 2021):

FTR, similar issues: #4105 #1741 #3627

<!-- gh-comment-id:980522746 --> @rusty-snake commented on GitHub (Nov 27, 2021): FTR, similar issues: #4105 #1741 #3627
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#2765
No description provided.