]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Reduce unit_get_ancestor_disable_mask use
authorMichal Koutný <mkoutny@suse.com>
Fri, 1 May 2020 12:00:42 +0000 (14:00 +0200)
committerMichal Koutný <mkoutny@suse.com>
Wed, 19 Aug 2020 09:41:53 +0000 (11:41 +0200)
commit12b975e06587e7e3c9c60fef74856574eba5c96f
tree56cead605d2189fb0e2b85ce800bd339de615773
parent4c591f3996dc8a3c06f95b13c044d97d94b4be4c
cgroup: Reduce unit_get_ancestor_disable_mask use

The usage in unit_get_own_mask is redundant, we only need apply
disable_mask at the end befor application, i.e. calculating enable or
target mask.

(IOW, we allow all configurations, but disabling affects effective
controls.)

Modify tests accordingly and add testing of enable mask.

This is intended as cleanup, with no effect but changing unit_dump
output.
src/core/cgroup.c
src/test/test-cgroup-mask.c