mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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#4212
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/2186
Author: @crass
Created: 10/13/2018
Status: ✅ Merged
Merged: 10/13/2018
Merged by: @netblue30
Base:
master← Head:fix-2148-always-have-helpers-in-sandbox📝 Commits (1)
4017e8aFix issue #2148: Make sure firejail can find helper programs in sandbox regardless of options.📊 Changes
6 files changed (+38 additions, -22 deletions)
View changed files
📝
src/firejail/bandwidth.c(+3 -3)📝
src/firejail/firejail.h(+14 -13)📝
src/firejail/fs_trace.c(+1 -1)📝
src/firejail/main.c(+9 -2)📝
src/firejail/output.c(+3 -3)📝
src/firejail/preproc.c(+8 -0)📄 Description
These changes allow firejail to always be able to find and run its helper libraries even when they are installed in a location that would otherwise be inaccessible in the sandbox (eg. under
${HOME}or/mediawhendisable-mntis enabled), which fixes #2148. The basic idea behind the implementation is to first unshare firejail's mount namespace and make all mounts private. Then early on we bind-mountLIBDIR, where the helpers programs are actually stored, to/run/firejail/liband have all the helpers be run from there.Despite there being a fair amount of lines to the changeset, the magic really happens in only a few lines. The unsharing of the mount namespace and making mounts private happens in
src/firejail/main.cline 883-886, and the bind-mount ofLIBDIRinsrc/firejail/preproc.clines 77-78.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.