mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 22:01:33 -06:00
[GH-ISSUE #2310] Can't create run directory without suid-root #1540
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#1540
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 @reinerh on GitHub (Dec 22, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2310
I compiled firejail with
--disable-suidand tried running it, but it fails to start:It tries to create its runtime hierarchy in
/run/firejail, which is not possible as unprivileged user.If this is not supported, it should check the uid and print a more friendly error message if the user is not root.
If an unprivileged user should be able to run it (without suid-root), maybe it can create required directories in the user's home directory.
@Vincent43 commented on GitHub (Dec 22, 2018):
I think
--disable-suidis only for distros which don't allow packages with setuid binaries in their repos. In that case users are supposed to enable suid bit on firejail binary themselves. Otherwise--disable-suidworks only when run asrootuser.See also https://github.com/netblue30/firejail/issues/1846#issuecomment-378348886
@chiraag-nataraj commented on GitHub (May 22, 2019):
Seems like this was answered. @reinerh, I'll go ahead and close this, but please feel free to re-open if you have further questions.
@reinerh commented on GitHub (May 22, 2019):
It was actually more a bug report or feature request than a question...
If firejail does not support being run without suid-flag, then this should be checked and printed.
If only a subset of the features is working without suid, then it should give a better explanation what failed (other than "permission denied") and maybe workaround it if possbile (like falling back to a directory that is actually writable by the user).