mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2419] whitelist and noblacklist seems to have no effect #1612
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#1612
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 @odiferousmint on GitHub (Feb 18, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2419
Config:
Then I tried:
and
both together, and separately.
The program I used is
VSCodium. I tried to open a file that exists inside/home/odiferousmint/foo, but there are no directories in/home/odiferousmint.Why?
I would also like to note that my configurations were not persistent/permanent either, even though I tried whitelisting and noblacklisting the directory in which the configuration files are placed. Workaround for using the right configurations upon startup is start the program without
firejail, configure the program, then start again withfirejail. Seems messy. I had no such issues in earlier versions offirejail.@Vincent43 commented on GitHub (Feb 18, 2019):
Is
/home/odiferousmint/invoking user$HOME? whitelist in dirs under/homeother than$HOMEin not supported.@odiferousmint commented on GitHub (Feb 19, 2019):
What exactly do you mean?
Can I not make programs see files and directories under my home directory? :/
I think it is a bug because the same
whitelist/noblacklistis present in many profile files. Look at/etc/firejail/code.profile. It hasnoblacklist ${HOME}/.config/Code. I have the same but for some reason the changes are not saved. This is actually odd because the executable itself is located under$HOME/.local/pkg/VSCodium-1.13.1, and without whitelisting that, it cannot find it, so I have it whitelisted which makes the executable run. So ultimately it sometimes works, sometimes it doesn't? I have no idea.Edit: I changed many things, I am not sure why but
whitelistworks now. I did some reordering too, maybe that's what fixed it. I know it matters for the executable. If you guys cannot reproduce the issue then it was probably my fault and sorry in advance. Feel free to close it if it's non-reproducible.I don't want to create another issue for this but this is odd. Look at
/etc/firejail/wire-desktop.profileas well.Is this intentional, if so, what is the reasoning behind this?
@Fred-Barclay commented on GitHub (Feb 19, 2019):
It's partly a redundant security fail-safe so that if someone decides to un-whitelist the wire profile, sensitive files still won't be visible inside the sandbox.
It's really important that ~/.config/Wire isn't visible to most programs running in firejail, so we blacklist it in
/etc/firejail/disable-programs.inc.noblacklistundoes this to make it accessible to Wire (as it ought to be). AFAIK it isn't strictly necessary unless someone removes whitelisting from the profile -- then it's vital if you want Wire to work.mkdirmakes sure the directory exists. Without this line, Wire will work correctly, but any changes you make (like settings) won't be saved once you close the sandbox. This is only necessary since we have awhitelistcall (if a profile only contains blacklists, we don't have to use mkdir).whitelist, of course, blocks access to (most) other files besides ~/.config/Wire.See #1569 for a historical note on the subject if you're interested. 😄
Cheers!
Fred
@matu3ba commented on GitHub (Jul 9, 2019):
Suggestion to close this.
@rusty-snake commented on GitHub (Jul 9, 2019):
@odiferousmint
I'm closing here due to inactivity, please fell free to reopen if you have more questions.