mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2059] Bug: Cannot whitelist home folders correctly #1389
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#1389
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 @t4777sd on GitHub (Jul 24, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2059
It appears there is some error prevention logic that prevents whitelisting home folders when run as root
sudo firejail --noprofile --whitelist=/home/user ls
Outputs error and says invalid whitelist path
Strangely, so does the following even though it IS the root home folder:
sudo firejail --noprofile --whitelist=/root ls
This command will succeed even though it is NOT the root home folder and does not even exist:
sudo firejail --noprofile --whitelist=/home/root ls
This command will also fail even though it explictly sets the homefolder of root to another:
sudo (
export HOME="/home/user"
firejail --noprofile --whitelist=/home/user ls
)
None of these cases should really be failing. If there is some strange error correction going on, then the last one where the HOME is set should work.
@chiraag-nataraj commented on GitHub (Jul 24, 2018):
Looking at the docs (
man firejail), it says the following about--whitelist:@chiraag-nataraj commented on GitHub (Jul 24, 2018):
I'm going to close this as discussion should probably move over to #2041.