mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #149] Restrictive umask breaks subdirectory whitelisting #102
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#102
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 @ghost on GitHub (Nov 19, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/149
Allow me to reopen #121 (I don't know if you get notifications for closed issues, I'm new) as I have more info now.
Basically the problem is that when you whitelist a subdirectory, then the topmost directory is owned by root. When whitelisting the topmost directory only, it is owned by the user.
Now with a more restrictive umask, the directory becomes inaccessible, since owned by root and only root has the rights.
@netblue30 commented on GitHub (Nov 19, 2015):
Yes, this is a bug. Thanks!
@netblue30 commented on GitHub (Nov 19, 2015):
I think I've fixed it. Give it a try, and if necessary I'll reopen it. Thanks.
@ghost commented on GitHub (Nov 19, 2015):
You did fix the bug, but now you ignore umask by setting perms to 0755 regardless. It was enough to just change the owner from root to user, which I think would be better that way. If you could only change the ownership and leave permissions alone, that would be great!
And thanks for the fix nonetheless. You're fast and I like what you do.
@ghost commented on GitHub (Nov 19, 2015):
I created a pull request. Hopefully I did it properly. If there's something I'm missing, or general notes, please tell me. It's my very first pull request and commit ever, ha.
@netblue30 commented on GitHub (Nov 20, 2015):
All fine, I had to update the code again and set the "x" bit mode for directories.