mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #367] Parse /etc/login.def for UID_MIN #264
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#264
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 @chiraag-nataraj on GitHub (Mar 16, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/367
Maybe I'm misunderstanding what you mean by "sanitizing" /etc/passwd and /etc/group, but the files seem to be the same as they are outside the sandbox. What exactly does firejail do?
@netblue30 commented on GitHub (Mar 16, 2016):
Only the current user and group are left in the file. All other users/groups are removed. If you are the only user on the system, the files will be unchanged.
@chiraag-nataraj commented on GitHub (Mar 17, 2016):
Ah okay, thanks!
@thomasjfox commented on GitHub (Jul 26, 2016):
Also every uid < 1000 is kept, at least in firejail up to 0.9.42-rc1.
Later versions might parse /etc/login.defs for UID_MIN.
I stumbled upon this behaviour since the restricted /etc/passwd still contained an additional user account with UID 503.
@netblue30 commented on GitHub (Jul 29, 2016):
Fixed in git repository.
@thomasjfox commented on GitHub (Jul 29, 2016):
On Friday, 29. July 2016 06:51:06 netblue30 wrote:
pretty cool :) thanks!
@netblue30 commented on GitHub (Jul 29, 2016):
You're welcome!