mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1082] Why are root-owned files owned by uid 65534 inside sandboxes? #737
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#737
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 @zackw on GitHub (Jan 31, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1082
All files that are owned by root in the outer environment are owned by uid+gid 65534 ("nobody") inside sandboxes, and there doesn't seem to be any way to turn this off. Why is this done? It doesn't seem to be necessary, and it actually screws up some applications' sanity checks -- for instance, Xlib will complain about
/tmp/.X11-unixnot being owned by root.@valoq commented on GitHub (Jan 31, 2017):
If available firejail uses user namespaces to run in an environment without root available to increase security. 65534 ("nobody") it the substitute for all users not present in that namespace.
@zackw commented on GitHub (Jan 31, 2017):
Can you please explain why omitting uid 0 from a user namespace increases its security (keep in mind that nothing can become uid 0 in the presence of NONEWPRIVS)? As I said, this actually screws up some programs' sanity checks, and I suspect it makes it easier for the affected files to accidentally get written to.
@netblue30 commented on GitHub (Feb 1, 2017):
In case NONEWPRIVS fails because of some bug in the kernel, an exploit will get stuck not finding uid 0 - at least that's may thinking in this moment.
It is possible some programs will complain.