mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2221] Why does firejail need to alter /etc/X11/Xwrapper.config allowed_users=console? #1491
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#1491
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 @Veek on GitHub (Oct 28, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2221
SInce firejail uses Xvfb etc and the usual .Xauthority why does it need to alter allowed_users=console? This weakens security and is not needed for Xvfb anyhow. I'm on firejail/debian-stretch 0.9.44.8
@SkewedZeppelin commented on GitHub (Oct 28, 2018):
Relevant: #633
@Veek commented on GitHub (Oct 29, 2018):
How does Firejail work?
My understanding is this: Firejail+Xpra uses Xvfb/framebuffer to gather pixmap data when the application tries to draw itself on the Xvfb-framebuffer. Then Xpra sends this data over br0 (assuming you used --net) across the network, to the already running Xorg server. Since the pixmap data is by definition safe, the application can't mess/hack the Xorg server.
I am able to start Xvfb manually: Xvfb :20 -ac -screen 0 1366x768x24 -fbdir /tmp -nolisten tcp& I can then do xwud -in /tmp/Xvfb_screen0
When I run:
su - test
firejail --x11=xpra --net=eth0 --env=DISPLAY=:0.0 xclock
I want xclock on 'test' account to connect to Xorg on :0
What I get is this: firejail starts ANOTHER Xorg instance and does something with my webcam/forwarding? cv2 module? And I ONLY GET THIS after chmod 777 /root and chmod 777 /.Xauthority I have to allow firejail to WRITE TO the .Xauthority of the owner/user of the Xorg process.
(EDITING eth0 to enp9s0 solves the network device issue) Why is firejail starting Xorg???
@chiraag-nataraj commented on GitHub (Dec 9, 2018):
It's starting Xorg because
--x11=xprastarts a new xpra instance. Essentially, it's starting Xorg because you asked it to.@chiraag-nataraj commented on GitHub (May 20, 2019):
I'm going to close this, but @Veek, please feel free to re-open if you have more questions.