mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #2732] [CLOSED] improve/add support for arbitrary home directories #4501
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#4501
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/2732
Author: @smitsohu
Created: 5/30/2019
Status: ❌ Closed
Base:
master← Head:homedir📝 Commits (10+)
f3a1dd4improve/add support for home directories outside /homec7b5a25don't resolve symlinks in homedir pathc865879close fd, add mountinfo checksdd208cbcleanup33d43d9fix system user support5e0083fdisallow stacking of private* options2a98d56fix chroot, overlay options (never run without a procfs)a5da270uncommon homedir locations should not break profiles30695b5make homedir symlink resolution configurablea3374e0fix homedir sanity check📊 Changes
11 files changed (+213 additions, -59 deletions)
View changed files
📝
etc/firejail.config(+3 -0)📝
src/firejail/checkcfg.c(+2 -0)📝
src/firejail/firejail.h(+1 -0)📝
src/firejail/fs.c(+30 -14)📝
src/firejail/fs_home.c(+60 -32)📝
src/firejail/fs_whitelist.c(+9 -1)📝
src/firejail/main.c(+70 -8)📝
src/firejail/profile.c(+12 -0)📝
src/firejail/restrict_users.c(+14 -2)📝
src/firejail/sandbox.c(+10 -0)📝
src/firejail/util.c(+2 -2)📄 Description
Relevant mostly for home directories outside /home or paths containing symbolic links. This pull request aims at removing all implicit assumptions about the location of the user home directory (which in fact can be almost anywhere in the filesystem). Instead it adds a new restriction that the home directory must be owned by the user.
#1078
Fixes #2259 (kind of)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.