mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2882] Nowhitelist option does not disable whitelisting entirely #1801
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#1801
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 @jose1711 on GitHub (Jul 31, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2882
Say I have a profile shipped with
firejailthat enables whitelisting of$DOWNLOADS. Something like this:Let's assume we want to disable whitelisting so we create a
foo.localfile and addnowhitelist:One would expect that
whitelistingis effectively disabled but this is not true:@netblue30 commented on GitHub (Jul 31, 2019):
As soon as it runs into a whitelist statement, firejail will mount a temporary filesystem on top of your directory. It doesn't matter if you already unwhitelisted the file.
@jose1711 commented on GitHub (Aug 1, 2019):
Note that here
whitelistandnowhitelistboth mention the same directory. So my understanding of this would be:firejailbuilds a list of files/directories to be whitelisted${DOWNLOADS}enters this list but is shortly removed from it bynowhitelistoption@rusty-snake commented on GitHub (Aug 1, 2019):
@jose1711 Not looked in the code, but I think @netblue30 mean that firejail do the mount on top of $HOME (or what every) once it finds a
whitelistand then check which files need to be bind-mounted.Here firejail see a
whitelist ${HOME}/somethingand mount a new empty fs on top of $HOME then it see it has do be bind-mount${DOWNLOADS}but Uhh wait there was prevouisly anowhitelist ${DOWNLOADS}. So it skip the bind-mount of DOWNLOADS and go ahead (to the next whitelist ~/some).@rusty-snake commented on GitHub (Sep 10, 2019):
How to proceed?
@rusty-snake commented on GitHub (Oct 4, 2019):
If there is no
whitelist ${HOME}afternowhitelistthe whitelisting of${HOME}should IMHO be disabled, because it will break disabling whitelist in .local files and force users to copy .profile or edit in etc.@rusty-snake commented on GitHub (Dec 14, 2019):
@smitsohu this get fixed once or new whitelist implementation gets merged, right?
@smitsohu commented on GitHub (Dec 16, 2019):
@rusty-snake the alternative whitelist implementation would fix it, yes.