mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1790] How best to whitelist/noblacklist a deep directory? #1211
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#1211
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 @Summertime on GitHub (Mar 1, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1790
given a directory structure like the following
How best would one go about doing a whitelist profile for such a program? I've tried:
with the command
which results in a permission denied error
I know I can "walk" the whitelists/blacklists down the tree with:
But I feel like I'm doing something wrong (since it creates 3 lines per level, a bit much!), but it does result in being able to run the executable and
lsthe various files in theAppNamedirectoryRunning an encrypted filesystem home directory as per the ubuntu server install defaults
@Vincent43 commented on GitHub (Mar 1, 2018):
It's not clear to me which directories you want access and which not.
Below doesn't make sense. Use blacklist or read-only, not both.
@Summertime commented on GitHub (Mar 6, 2018):
Sorry for my poor communication, I corrected some of the paths and added my reasoning:
If it would help, I could make a full file tree of desired properties of various folders and throw it into a gist?
@Vincent43 commented on GitHub (Mar 7, 2018):
Does below works for you?
@chiraag-nataraj commented on GitHub (Aug 19, 2018):
@Summertime Did you try what @Vincent43 posted? If so, did it work?
@Summertime commented on GitHub (Aug 21, 2018):
Sorry for a delayed response, if I remember correctly there were some issues with the provided solution, however I can't test them out currently or for the forseeable future, sorry.