mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #750] NFS support: firejail --private issue "cannot transfer .Xauthority" #509
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#509
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 @sebastianst on GitHub (Aug 29, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/750
Hi,
I cannot start any application in firejail private mode. E.g. running
firejail --private geditgives meI think the important lines are (as the other ones are also shown when running gedit without the private flag):
Running
geditwithout the--privateoption works.Specifying a private home directory with the same flag or custom configuration in
~/.config/firejail/produces the same error.My
.Xauthorityfile has mode600(u=rw) and I am running i3wm, which I start from the login console withstartx. My home directory is a mounted NFSv4 share, if that's of any interest.@sebastianst commented on GitHub (Aug 30, 2016):
I fixed it by adding my local user to the authorized client list:
But that still doesn't fix the actual problem of firejail not being able to copy the
.Xauthorityfile.Now I can start a private
gedit... However, starting a private firefox withfirejail --private firefoxdoesn't work, it just starts a new window of my already running firefox. But that's something else I have to figure out now.@netblue30 commented on GitHub (Aug 30, 2016):
This is easy, Firefox runs as a single process, and instead of opening a new instance, it opens a new tab or a new window in the already running instance. You'll have to use -no-remote flag:
@sebastianst commented on GitHub (Aug 30, 2016):
Thanks, I figured that out after posting. I used
--new-instanceto open a new firefox, which works as well.Now I experience a new bug, which I will post soon :)
@netblue30 commented on GitHub (Sep 1, 2016):
What distro are you using? Usually, you wouldn't have to do "xhost +si:localuser:".
@sebastianst commented on GitHub (Sep 1, 2016):
I use Arch Linux, running i3 after logging into the console via
startx.I don't see why you closed this bug. The problem remains that firejail cannot copy the
.Xauthorityfile. If that succeeded, I guess you wouldn't even need to have the permissionxhost +si:localuser:$USERset and firejail would still be able to connect to the X Server.@netblue30 commented on GitHub (Sep 1, 2016):
Sorry, I thought xhost fixed it! How do you have your home directory mounted?
@sebastianst commented on GitHub (Sep 1, 2016):
My home directory is mounted via NFSv4 (and autofs):
(names and ips changed)
@netblue30 commented on GitHub (Sep 3, 2016):
NFS is not supported in this moment. I'll mark it as an enhancement.
@sebastianst commented on GitHub (Sep 6, 2016):
Glad we finally found the root of the problem :) Thanks
@sebastianst commented on GitHub (Sep 6, 2016):
I moved my
.Xauthorityfile to a directory on a local partition by setting theXAUTHORITYenvironment variable. That made me realize that firejail doesn't respect this environment variable and the path is hardcoded to$HOME/.Xauthority. It would be great to have firejail respect the env. var.XAUTHORITY. I think changes would need to go intosrc/firejail/fs_home.c.@netblue30 commented on GitHub (Sep 6, 2016):
This becomes a bug!
@chiraag-nataraj commented on GitHub (Aug 6, 2018):
I think this was fixed a while ago (
fs.cusesgetenv("XAUTHORITY")to get the location). If it's not fixed, feel free to re-open @sebastianst.