mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3663] Unable to whitelist steamapps when using --private #2305
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#2305
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 @S0PEX on GitHub (Oct 11, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3663
Bug and expected behavior
When using --whitelist the jail should have access to the whitelisted folder.
No profile and disabling firejail
I tried it with --noprofile and without
Reproduce
Steps to reproduce the behavior:
firejail --noprofile --private --whitelist=/home/artur/.local/share/Steam/steamapps/Environment
Additional context
I am trying to launch two steam game instances to trade my items to my other account.
When I run
firejail steamthe steam instance start and I can run the game. To open a second instance I runfirejail --noprofile --private --whitelist=/home/artur/.local/share/Steam/steamapps/, but this instance couldn't access the steamapps folder.Then I tried to create a folder and create a symbolic link to the steamapps folder
/home/artur/jails/1/.local/share/Steam/steamapps -> /home/artur/.local/share/Steam/steamapps/and provided firejail with the privatefirejail --noprofile --private=/home/artur/jails/1 --whitelist=/home/artur/.local/share/Steam/steamapps/without any luck.I then ended up using
mount-bindand mount the steamapps directory inside/home/artur/jails/1/.local/share/Steam/steamappswhich then worked.So I was wondering if there is a better way without
mount-bind.Regards Artur
@rusty-snake commented on GitHub (Oct 11, 2020):
First, this is expected behaviour.
--privatemake a new, empty, temporary private $HOME.IDK what exactly you want to reach, but here are two ways:
firejail --private=/home/user/foobar …makes everything persistent under/home/user/foobar/.local/share/Steam/steamapps(which is inside the sandbox/home/user/.local/share/Steam/steamapps)firejail --whitelist=$HOME/home/artur/.local/share/Steam/steamapps …makes only$HOME/home/artur/.local/share/Steam/steamappsappear in the sandbox.@S0PEX commented on GitHub (Oct 11, 2020):
I just want to run steam with the access to my local steam games library which is located under
home/artur/.local/share/Steam/steamapps/. The only option that I found was working was to manuallymount-bindthat directory in my--private /home/artur/jails/1/. It would be nice if firejail could directly access/home/artur/.local/share/Steam/steamapps/without any restrictions.@reinerh commented on GitHub (Oct 11, 2020):
That should work by default. What is your intention with running firejail with
--private? This creates a temporary home directory as @rusty-snake already mentioned.What's the behavior/error when you just run
firejail steam?Edit: sorry, I missed it in the original post. you want to run a second steam instance, but use the same steam directory.
I'm not sure if steam supports that, it's probably tracking its state etc. in there as well.
@S0PEX commented on GitHub (Oct 13, 2020):
Well I though running jail with
--private=/home/artur/jails/1/persists all data to the given folder. Also steam works without any issues when bind-mounting the steamapps folder into/home/artur/jails/1/.local/share/Steam/steamapps. Because otherwise the folder/home/artur/.local/share/Steam/steamappsisn't visible to the jailed steam.@rusty-snake commented on GitHub (Nov 9, 2020):
Nope, I know no better way then manually bind-mounting.