mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #225] [rfe] add option to blacklist all ~/.* directories #158
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#158
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 @genodeftest on GitHub (Jan 13, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/225
In many cases you need to blacklist all but a few "dot" directories in ${HOME}. This is because applications should usually not have access to config files of most other applications. Is there any simple way to do this? If not implementing such a feature would be nice.
A general option for that would be nice, since blacklisting is always risky since whoever wrote the config might have missed something.
With this option one could get rid of most
blacklistconfig options, including most of etc/disable-common.inc and etc/disable-secret.inc.@the8472 commented on GitHub (Jan 13, 2016):
What about using whitelist instead of blacklist?
@genodeftest commented on GitHub (Jan 13, 2016):
"Blacklist all but a few" essentially is whitelisting. I meant
~/.*directories should generally be forbidden, but they can still be whitelisted.@the8472 commented on GitHub (Jan 13, 2016):
Yes, but I mean if you use the whitelist feature then everything else in the home dir is automatically blacklisted, which obviously includes the dot dirs.
@genodeftest commented on GitHub (Jan 13, 2016):
I just want to blacklist the
~/.*directories. That's why I opened this issue.An example: Your PDF viewer might need access to some config files in ~/.local and ~/.config, but it doesn't need access to any other
~/.*folder. It needs access to things like Desktop and Downloads directory, so those should probably be allowed. Since users sometimes have other directories below${HOME}with relevant non-config/non-cache data in it, I won't blacklist everything but those two directories.I haven't figured out how to whitelist all directories in ${HOME} not starting with a
.. That's what I need.(Sorry for being complicated, English is not my first language.)
@netblue30 commented on GitHub (Jan 14, 2016):
OK, I'll add a --blacklist-alldotfiles option!
@netblue30 commented on GitHub (Mar 6, 2016):
It is working today:
All dot files under home are blacklisted.