mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4282] chromium: Unable to open X display (missing whitelist) #2605
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2605
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xwang1976 on GitHub (May 15, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4282
Bug and expected behavior
When I run
firejail chromiumI get the following messages:
No profile and disabling firejail
Nothing changes calling
firejail /usr/bin/chromium.Calling
firejail --noprofile /usr/bin/chromiumopens the program correctly.I've noted that executing
xhost +before runningfirejail chromiumsolves the issue, but I'm not sure if it is safe to do.Environment
I'm running archlinux, with rootless xorg using sddm-git and kde.
firejail version 0.9.64.4
Additional context
The same issue happens with other programs too.
It seems as the only way to have it working correctly is by setting
xhost +Edit: Formatting.
@Xwang1976 commented on GitHub (May 16, 2021):
Running xhost SI:localuser:myusername solves the issue too and maybe it is safer tha xhost +
The fact is that till yesterday everything was working correctly.
I've "only" removed GDM and installed SDDM.
With GDM Xorg was alredy runned rootlessy
@rusty-snake commented on GitHub (May 16, 2021):
Where is your Xauthority file (
echo $XAUTHORITY)?@Xwang1976 commented on GitHub (May 16, 2021):
When using sddm, echo $XAUTHORITY gives /run/user/1000/c04e4bb9-0531-4ab3-86a8-caaa6f30a661 with the file name changingat every reboot
Using GDM echo $XAUTHORITY gives /run/user/1000/gdm/Xauthority
Moreover when I look at the Xorg process it is runned by sddm as:
/usr/lib/Xorg -nolisten tcp -background none -seat seat0 -noreset -keeptty -novtswitch -verbose 3 -auth /run/user/1000/c04e4bb9-0531-4ab3-86a8-caaa6f30a661 -displayfd 8 vt1 -logfile /dev/null
GDM instead runs Xorg in this way:
/usr/lib/Xorg vt2 -displayfd 3 -auth run run/user/1000/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -novtswitch -verbose 3
Finally running xauth when started by sddm I get:
access control enabled, only authorized clients can connect
Whereas running when uning GDM I get:
access control enabled, only authorized clients can connect
SI:localuser:andreak
@rusty-snake commented on GitHub (May 16, 2021):
Can you try to add this line to
/etc/firejail/whitelist-runuser-common.inc@Xwang1976 commented on GitHub (May 16, 2021):
Adding that line solves the issue.