mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4004] [MERGED] add PATH_FCOPY to private-lib automatically #4987
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#4987
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/4004
Author: @smitsohu
Created: 2/23/2021
Status: ✅ Merged
Merged: 2/24/2021
Merged by: @netblue30
Base:
master← Head:privatelib4📝 Commits (1)
a274ad1add PATH_FCOPY to private-lib automatically📊 Changes
3 files changed (+82 additions, -34 deletions)
View changed files
📝
src/firejail/fs_lib.c(+26 -26)📝
src/firejail/fs_lib2.c(+52 -5)📝
src/firejail/sbox.c(+4 -3)📄 Description
Essentially restores
45304621a6. Removing read permission on helper executables (fcopy) broke this original fix.Now run fldd as root in order to fix #3741 without having to compromise or give up on the new permission system. It runs as root only on binaries that are not controlled by the user, and that Firejail needs to trust anyway. Also infrastructure is put in place to add more helper binaries to private-lib, should the need arise.
This pull request might be useful also for other reasons. For example, if one day we want to run the test suite with ASan/UBsan instrumentation, private-lib should now pick up all necessary libraries automatically (again).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.