mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1235] Using both noblacklist and read-only on the same folder #839
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#839
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 @laniakea64 on GitHub (Apr 19, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1235
I had always thought that
noblacklist ~/Documentssimply prevented anyblacklistdirectives from applying to~/Documents. Nothing more, nothing less. But that can't be quite accurate, becausenoblacklistseems to preventread-onlyfrom taking effect.To see what I mean -
~/Documents/sdfsdf.profile-... and there appears a file named
Fooin~/Documents.Commenting out the lines
noblacklist ~/Documentsandblacklist ${HOME}/*in the profile, results in the touch command giving the expected "Read-only file system" error.So what does
noblacklistdo exactly, and why does it seem to disableread-only?Thanks for any insight.
@chiraag-nataraj commented on GitHub (Jul 30, 2018):
Seems to be fixed in the latest version, so I'll close the bug. @laniakea64, please re-open if you still have this issue.
[Edit] Never mind, I seem to be having the same issue.
@matu3ba commented on GitHub (Jun 22, 2019):
@chiraag-nataraj What did you want to run on that profile? Another shell?
I am not sure, if using the same folder as the profile is the best example (since profiles should be in
.config/firejail).Check #2735 and #1569.
If I am not mistaken, your blacklist overwrites the noblacklist from before resulting in no access besides the HOME and seeing folder structure below.
@laniakea64 commented on GitHub (Jun 22, 2019):
(@matu3ba although I'm not @chiraag-nataraj , I am the original reporter and the author of the profile in the original description, so I'll reply to your comment anyway.)
Memory is a bit fuzzy now but I believe it stemmed from a generic attempt to work around https://github.com/netblue30/firejail/issues/1234 (now fixed).
Location of the profile file is immaterial. Same issue occurs on latest firejail with putting the profile in
~/.config/firejail.It doesn't for me, and I don't see how that's relevant? To be clear, the issue here is that
noblacklistis overriding bothblacklistandread-only, but it is only supposed to overrideblacklist.@rusty-snake commented on GitHub (Jun 22, 2019):
Works (but should not work):
firejail --noblacklist="~/Bilder" --read-only="~/Bilder" touch Bilder/test2@smitsohu commented on GitHub (Jun 29, 2019):
Thanks! It should work now, you can give it a try.
@laniakea64 commented on GitHub (Jun 29, 2019):
It does work now. Thanks @smitsohu for fixing this!