mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #2982] [MERGED] Move chroot entirely from path based to file descriptor based mounts #4605
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#4605
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/2982
Author: @smitsohu
Created: 9/29/2019
Status: ✅ Merged
Merged: 10/4/2019
Merged by: @netblue30
Base:
master← Head:chroot📝 Commits (6)
9dfecbemove chroot from path based to file descriptor based mounts94aba62chroot module13305e4improve variable names70c8924base checks and mounts on same file descriptorb2a91casimplify chroot option parsingcba04e0improve enforce_filters warning📊 Changes
5 files changed (+299 additions, -276 deletions)
View changed files
➕
src/firejail/chroot.c(+280 -0)📝
src/firejail/firejail.h(+7 -3)📝
src/firejail/fs.c(+3 -252)📝
src/firejail/main.c(+8 -20)📝
src/firejail/sandbox.c(+1 -1)📄 Description
chroot directory validation was based on a file descriptor logic already, move now on top of that to file descriptor based mounts and resolv.conf copying.
Also collects all code in a new chroot module.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.