mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #954] Questions regarding inheritance #647
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#647
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 @0xBRM on GitHub (Dec 4, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/954
When you spawn a firejailed process like firefox, what happens when you spawn a child process from within it, like mpv? I tried to add ~/.config/mpv to the firefox.profile whitelist but mpv still cannot read mpv.conf and the scripts inside its configuration folder.
So my questions are:
Do the children of the main process have access to the firejail profiles?
When you spawn a process from within a sandbox, does that project inherit the profile of the parent process?
If not, what profile does it use?
@valoq commented on GitHub (Dec 4, 2016):
The profiles define the permissions of the jail that are applied before the actual process is started.
All child processes have the same constrains as the parent process.
So by adding e.g. "include /etc/firejail/mpv.profile" in your firefox profile, it should be possible to start mpv within the firefox jail.
@netblue30 commented on GitHub (Dec 4, 2016):
It would work if both profiles were whitelisted profiles. In this case, mpv is a blacklisted profile, so you wold have to copy /etc/firejail/firefox.profile in ~/.config/firejail ("cp /etc/firejail/firefox.profile ~/.config/firejail) and edit it. Add a "noblacklist ~/.config/mpv" at the beginning of the file, and a "whitelist ~/.config/mpv" statement at the end of the file.
@valoq commented on GitHub (Dec 4, 2016):
Shouldn't "noblacklist ~/.config/mpv" as in the mpv.profile file do the trick as well?