diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-17 19:25:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-11-21 11:54:08 +0100 |
commit | 64e844e5ca5be2f8766c68bcfb112e4cd84a8bb2 (patch) | |
tree | 6e54ec5701d06bbc558ea24b2ca96442d089554c /test | |
parent | 5e20b0a4522d8d2753ae3991a7aa9f11f1f6cc95 (diff) | |
download | systemd-64e844e5ca5be2f8766c68bcfb112e4cd84a8bb2.tar.gz |
cgroup: fix delegation on the unified hierarchy
Make sure to add the delegation mask to the mask of controllers we have
to enable on our own unit. Do not claim it was a members mask, as such
a logic would mean we'd collide with cgroupv2's "no processes on inner
nodes policy".
This change does the right thing: it means any controller enabled
through Controllers= will be made available to subcrgoups of our unit,
but the unit itself has to still enable it through
cgroup.subtree_control (which it can since that file is delegated too)
to be inherited further down.
Or to say this differently: we only should manipulate
cgroup.subtree_control ourselves for inner nodes (i.e. slices), and
for leaves we need to provide a way to enable controllers in the slices
above, but stay away from the cgroup's own cgroup.subtree_control —
which is what this patch ensures.
Fixes: #7355
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions