mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1018] Issue with --noblacklist having no effect #695
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#695
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 @kyonifer on GitHub (Jan 2, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1018
I'm on arch linux with firejail-git on master (
410602c). Following the manpage example:Trying to access
ncwith some other combinations:include /etc/firejail/disable-common.incline -> granted--noprofile-> granted--noprofile --blacklist=/bin/nc-> permission denied--noprofile --blacklist=/bin/nc --noblacklist=/bin/nc-> permission denied@reinerh commented on GitHub (Jan 2, 2017):
You are noblacklisting /bin/nc, but your nc is in /usr/bin.
@kyonifer commented on GitHub (Jan 2, 2017):
/bin is a symlink to /usr/bin on arch. I've tried with
firejail --noblacklist=/usr/bin/nc --noblacklist=/bin/ncto make sure it wasnt an issue with following the symlink. Sorry I should have included those in the original ticket.It seems like
--blacklistfollows syms since it blocksncwith--noprofile --blacklist=/bin/nc.@viking777 commented on GitHub (Jan 3, 2017):
I have been having a similar issue to this on Manjaro when using Keepassx (actually keepassx2 - but I am sure that makes no difference).
keepassx.profile file contains the line 'noblacklist ${HOME}/.kdbx' which should override the 'disable-common.inc' line 'blacklist ${HOME}/.kdbx' but it doesn't.
The result is a permission denied message when trying to open keepassx.
If I run with the --noprofile option then keepassx works.
Similarly if I comment out 'blacklist ${HOME}/*.kdbx' from disable-common.inc keepassx will work.
I conclude, as the OP states in the title that 'noblacklist' lines are being ignored in some cases.
@chiraag-nataraj commented on GitHub (Aug 24, 2018):
The problem is that the
noblacklistlines have to go before theblacklistlines. So anynoblacklists that you want to override built-inblacklistcommands need to go in a custom profile and can't be done on the command-line. @netblue30 I don't know if this is fixable, given that we parse and apply things in order (rather than parsing everything first and then applying(no)blacklistdirectives). I'm going to change this toinformationfor now, and we should probably document this in the man pages if nothing else.@rusty-snake commented on GitHub (Apr 1, 2020):
Any progress here?
@rusty-snake commented on GitHub (Apr 1, 2020):
@fenuks commented on GitHub (Apr 23, 2021):
I have somewhat related issue that is present for me in both stable version and latest git.
Stable version doesn't have fixes for changes in Jetbains IDE configuration paths yet.
I thought I'd add 'noblacklist ${HOME}/.config/Google/
to~/.config/firejail/android-studio.local. My local configuration is read, but it doesn't work, there is no access to that directory inside firejail sandbox, BUT if I add that very line to/etc/firejail/android-studio.profile` instead, it works as expected. Local profile is read before any blacklists, so I suspect a bug.Just in case, I'm running Arch Linux with 5.11.16 kernel.
@ghost commented on GitHub (Apr 23, 2021):
@fenuks Does it change anything if you drop the last / and use
noblacklist ${HOME}/.config/Google? Or is this a typo?@fenuks commented on GitHub (Apr 24, 2021):
Thank you! That was it. I'd copied path without trailing slash into
/etc/firejail/android-studio.profilefrom my local file without noticing. I didn't know that trailing slash makes difference here.@ghost commented on GitHub (Apr 24, 2021):
@fenuks You're welcome. Firejail is very picky on these things.
@rusty-snake I'm closing this for now. This stuff is old and known quirks are documented. Anyone still encountering this can reopen.