mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2128] Jailing system services #1442
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#1442
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 @Artefact2 on GitHub (Sep 30, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2128
It seems firejail will not work with system users, even if they are explicitely added to
/etc/firejail/firejail.users. This makes jailing system services (like tor, i2pd, etc.) that run as their own user problematic.One workaround is using
firejail sudo -u i2pd i2pdbut that requires weakening a lot of directives (allowing root, setuid, access to the sudo binary, etc). I am also having a hard time getting it to work.One other workaround is changing the uid of these users to something above 1000, but that sounds like an even worse idea.
Can firejail be made to work for system users at all?
@SkewedZeppelin commented on GitHub (Sep 30, 2018):
If you are running systemd, I would just use the built in hardening capabilities. See https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Sandboxing for a rundown
@Vincent43 commented on GitHub (Sep 30, 2018):
What firejail version do you use? It should be fixed in 0.9.56 with
95deecf1f3, see https://github.com/netblue30/firejail/issues/2088@Artefact2 commented on GitHub (Sep 30, 2018):
I am still running
0.9.54. I will play withaspto try out the latest version then. Thanks!