mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #278] unexpected behaviour of whitelist on filesystem different from the one of $HOME #194
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#194
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 @wcat on GitHub (Feb 4, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/278
I think this is not the expected behaviour (/media/data is the mount point of a filesystem that I mount on boot):
touch /media/data/some-file /media/data/foo/some-filefirejail --blacklist=/media/data find / -name some-file 2> /dev/nullno file is found
firejail ---blacklist=/media/data --whitelist=/media/data/some-dir find / -name some-file 2> /dev/nullfinds: /run/firejail/mnt/orig-media/data/some-file and /run/firejail/mnt/orig-media/data/foo/some-file
Basically if I whitelist something on /media/data then everything is accessible.
firejail version: 0.9.36
os: Fedora 23 x86_64
@manevich commented on GitHub (Feb 4, 2016):
Unable to reproduce on Debian Jessie with stock kernel, both with 0.9.36 and
19afadb5e9.Also, you are misusing
--whitelistoption, it's not opposite to--blacklist, withfirejail --whitelist=/media/data/some-diryou should get/media/data/containing onlysome-dirdirectory.@wcat commented on GitHub (Feb 5, 2016):
ok by using only --whitelist it works as expected (only /media/data/some-dir is visible).
Blacklisting a directory and then whitelisting a directory (or file) inside it leads to different behaviors on my system:
@netblue30 commented on GitHub (Feb 6, 2016):
There is a more general bug here: https://github.com/netblue30/firejail/issues/276
Let me fix 276, and will take it from there. Thanks for the bug.
@netblue30 commented on GitHub (Feb 9, 2016):
276 fixed, give it another try.
@wcat commented on GitHub (Feb 18, 2016):
yes it doesn't happen no more on 0.9.38.
Thanks