mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #862] Need a way to write to /sys/fs/cgroup inside firejailed process #586
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#586
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 @gi11es on GitHub (Oct 16, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/862
Hi,
I'd like to assign the subprocesses of a firejailed process to a different cgroup than the firejailed process. In order to do that, I need to be able to write to the /sys/fs/cgroup VFS. I can't find an option in firejail that would let me do that. Am I missing something? Can the disabling of /sys/fs be turned off?
@gi11es commented on GitHub (Oct 17, 2016):
Some context about why I need something like this: https://phabricator.wikimedia.org/T145623
@netblue30 commented on GitHub (Oct 17, 2016):
I put a fix in git, use "firejail --noblacklist=/sys/fs program-name".
@gi11es commented on GitHub (Nov 4, 2016):
It doesn't work, or at least doesn't work in the way I need it to.
In order to be able to manipulate cgroups from within the firejailed process, the contents of /sys/fs/cgroup need to be present and modifiable. --noblacklist=/sys/fs seems to only mount subdirectories of /sys/fs as empty directories: