mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 06:06:02 -06:00
[PR #7067] whitelist: allow placing an overlay into the sandbox #6301
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#6301
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/7067
Author: @mardy
Created: 2/17/2026
Status: 🔄 Open
Base:
master← Head:whitelist-overlay📝 Commits (1)
bac991fwhitelist: allow placing an overlay into the sandbox.📊 Changes
2 files changed (+49 additions, -13 deletions)
View changed files
📝
src/firejail/firejail.h(+1 -0)📝
src/firejail/fs_whitelist.c(+48 -13)📄 Description
The use case for this option might not be that common, but I though of sharing it anyway. If you think that this feature is not of general use, feel free to just close this.
This is similar to what a few comments requested in https://github.com/netblue30/firejail/issues/1743 and can be though of a generalisation of the
--hosts-file=<file>option. Our use case is that we unpack the application in a special directory, and then when launching it we map some files and directories from the application package into the sandbox. For example:This operation might deserve its own command name, but since its functionality is 95% the same as the one of the "whitelist" command, I implemented it by just expanding the syntax:
Maybe
overlay,maporreplacewould be better names for this.Note: if "
<path>" does not exist, it will be created as a new file or directory (depending on whether "<overlay>" is a file or a directory).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.