-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odd behaviour with --x11=xorg under GNOME 3 / gdm #1652
Comments
An easier solution* is to simply run GNOME under Wayland. Wayland adds a decent amount of separation, however a lot of the community always says its useless since the apps aren't sandboxed. But Wayland + Firejail makes for an awesome combination. Be warned though that even under Wayland that legacy X apps will still be able to see the input of other X apps (since they all share a single Xwayland process). Eg. if you're playing a proprietary game its anticheat might key-log what you type into Chromium, but at least it can't capture your screen (I think). You can see what apps are currently using X by running |
@SpotComms, thanks for the tip. My guide is currently oriented towards to those using GNOME on X11, but I will probably migrate it to cover Wayland at some point in the future. That being said, the |
Hm, turns out the experimental fix b35c000 is broken as well. I was under the impression I had it working 😕
|
Hi, as I mentioned in #1600 I am putting together an addition to my EFI Install Guide regarding the use of an X11-sandboxed (Xephyr) sandbox for use with firefox.
I now have a configuration that works even with WiFi interfaces, using the bridge configuration suggested your answer to #1600, so thanks for that.
However, having read about the
--x11=xorg
option in thefirejail
manpage, I thought I'd give that a try too, since it would be much simpler to setup for most users. I recompiled my X server using thexcsecurity
USE flag (I use Gentoo), restarted, and then tried to see if e.g.xinput
would be blocked from scanning keyboard input when untrusted, as it should be. However, startingbash
under thefirefox
profile with--x11=xorg
did not give the expected results:Other commands, such as
xinput test 9
worked too. So (still in the sandbox, I tried):Note that
/run/user/1000/gdm/Xauthority
is not the~/.Xauthority
path thatfirejail
bind mounts its untrusted xauthority into:firejail/src/firejail/x11.c
Lines 1195 to 1217 in a1530b3
I am running a GNOME 3 desktop, with
gdm
as the login manager. The above/run/user/1000/gdm/Xauthority
is still present (not blacklisted) in the sandbox environment, and selected by default as theXAUTHORITY
:Trying to force the issue seemed to work (above sandbox was closed first):
But appeared to be easily overridden in the sandbox (even though
/run/user/1000/gdm/Xauthority
was inaccessible now), by simply blanking the environment variable:Anyway, as I said I have a working
xephyr
setup that I'm writing up now, but thought this might be useful info to pass on, as there have been a few other reports of--x11=xorg
not behaving quite as expected (e.g. #57 (comment)).I am running version 0.9.50 of
firejail
from the standard Gentoo repos.The text was updated successfully, but these errors were encountered: