mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4742] Bind instead of copy for private-{bin,etc,lib,opt,srv} #2771
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#2771
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 @Thaodan on GitHub (Dec 5, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4742
Is your feature request related to a problem?
If a profile uses private-etc/private-bin the entries mentioned are copied to the sandboxes directory which increases space and makes outside changes not visible to the processes running inside the sandbox.
Describe the solution you'd like
If private-etc instead would bind mount the directories to the sandbox outside changes to the process running in the sandbox visible.
Describe alternatives you've considered
Whitelist paths in /etc however I'm not sure if this would work for the those use-cases.
@rusty-snake commented on GitHub (Dec 5, 2021):
FTR: Changes are only visible if they are performed with a
writelike semantic. If the changes are performed with aopen+write+close+renamelike semantic, they will not show up.@rusty-snake commented on GitHub (Jun 8, 2022):
IMHO we should bind instead of copy for all
private-*exceptprivate-home(private-{bin,etc,lib,opt,srv}) because it causes slowdowns (#5162) and can have an incredible high memory foodprint (#5178).@otonoton commented on GitHub (Jul 30, 2024):
Has there been any work on this?