mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4808] ${HOME} should be allowed to be something like /dev/null #2782
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#2782
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 @crocket on GitHub (Jan 2, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4808
Problem
Some system daemons are started as a non-root user with /dev/null as HOME.
Firejail has difficulties when HOME is /dev/null because
include *.localfails whenHOMEis/dev/null.Solution
Firejail should be fine with
/dev/nullas HOME.Alternatives
I haven't tried AppArmor. Can AppArmor do things that firejail can do? I think AppArmor can be great for system daemons and programs that launch other programs.
@rusty-snake commented on GitHub (Jan 2, 2022):
FTR: #4778
@crocket commented on GitHub (Feb 14, 2022):
include *.localshouldn't require${HOME}to not be /dev/null.privateandprivate-cacheshouldn't require${HOME}to not be /dev/null.ignore privateandignore private-cachein /etc/firejail/globals.local@rusty-snake commented on GitHub (Jun 8, 2022):
You should they work if it is /dev/null?
@crocket commented on GitHub (Jun 9, 2022):
System daemons often don't have $HOME. I was trying to sandbox system daemons with firejail.
I think firejail should be able to work with $HOME at /dev/null.