mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3581] Blacklisting /media/ except for one folder #2246
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#2246
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 @ihasaquesion on GitHub (Aug 10, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3581
When I use a profile that has
noblacklist /media/directory/pathfollowed by a laterblacklist /media/I keep getting blacklist violations in the syslog:syscall opendir, path /media. These errors only appear when I includeblacklist /media/.How to blacklist all /media/ except for one directory?
And it also doesn't work when whitelisting the directory (next to the other whitelistings in the profile).
firejail version 0.9.62
@smitsohu commented on GitHub (Aug 11, 2020):
It is easy, just do
--noblacklist=/media/dir --blacklist=/media/*@ihasaquesion commented on GitHub (Aug 11, 2020):
Doesn't work.
I'd like to use a profile, not command-line parameters. The profile is:
@smitsohu commented on GitHub (Aug 11, 2020):
Ok, then it is
Or just
whitelist /media/veracrypt/dir.If the latter does not work, please post the output of
firejail --debug-whitelists --whitelist=/media/veracrypt/dir. Redact the name of the directory if you like.@ihasaquesion commented on GitHub (Aug 11, 2020):
Thanks, whitelisting beneath the profile's blacklistings worked. Previously it didn't - probably because I kept the blacklistings.
@ihasaquesion commented on GitHub (Aug 11, 2020):
It worked for one profile but not the other. I also put whitelist to the bottom of the profile before caps.drop all. I tried removing the noblacklist for the same directory. It's the profile for #3579
@smitsohu commented on GitHub (Aug 11, 2020):
Is there a
disable-mntline in that other profile?@ihasaquesion commented on GitHub (Aug 11, 2020):
No, it's mostly the default JDownloader profile. I added
include chromium.profile.@rusty-snake commented on GitHub (Aug 11, 2020):
… which
includes chromium-common.profile which setsdisable-mnt🙄 .@ihasaquesion commented on GitHub (Aug 11, 2020):
I suspected this line to be the culprit. How to enable-mnt without having to modify this profile?
@rusty-snake commented on GitHub (Aug 11, 2020):
Add
ignore disable-mntbefore youinclude chromium.profile.@ihasaquesion commented on GitHub (Aug 11, 2020):
Thank you!!