mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #875] Warnings with --x11=xorg #593
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#593
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 @valoq on GitHub (Oct 26, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/875
using the X11 security extension leads to the following warning at startup:
/usr/bin/xauth: file /run/firejail/mnt/sec.Xauthority does not exist
Also when using it with firefox, most things seem to work fine but the terminal (from which it was started with firejail --x11=xorg firefox) spams with the following message whenever the mouse is moved:
Xlib: extension "XInputExtension" missing on display ":0".
There is also a changed mouse cursor when hovering over links.
I suspect there are some config files that are missing access exceptions.
The documentation says taht xterm will not work with this option but XTerm(327) seems to have no issues so far.
Is there a way to test keylogging functionality with this option? xinput is no available when using this option, which is probably a good thing but not helpful for testing.
@netblue30 commented on GitHub (Oct 27, 2016):
This is a bug, I was able to reproduce it:
Yes, they seem to disable a number of x11 extensions such as XInput, RANDR, RECORD and SHAPE. I don't have a full list, if you find one please let me know.
On debian stable xterm(312) seems also to work, however when I select text with the mouse it crashes immediately.
I grabbed a bunch of keyloggers from the web, compiled them and started them inside the sandbox. They don't seem to pick up anything from outside the sandbox. This is one example: https://github.com/magcius/keylog.
@valoq commented on GitHub (Oct 27, 2016):
I have experienced crashes with all tested applications, whenever I tried to copy some text.
Is this preventable by firejail or an x11 bug?
Regarding certain x11 features: is it possible to (safely) enable or disable specific features for single applications? No being able to copie from one window to another (no to mention the crashes) does not make this feature very useful. If this were possible it would be an awesome alternative for xpra on the other hand.
@netblue30 commented on GitHub (Oct 29, 2016):
No, some applications are just crashing when x11 security extension is enabled. These are application problems, basically they don't do any kind of error recovery.
Copying works for --x11=xpra, the clipboard seems to be configurable.
For xephyr you will have to run both applications on the same x11 server, I have an example for --x11=xephyr here: https://firejail.wordpress.com/documentation-2/x11-guide/#listing.
X11 security extension disables the clipboard and drag&drop,
@netblue30 commented on GitHub (Nov 5, 2016):
Fixed.