]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: rename {manager_owns|unit_has}_root_cgroup() → .._host_root_cgroup()
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Nov 2018 21:42:16 +0000 (22:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 11:24:37 +0000 (12:24 +0100)
commit611c4f8afb2a941b8d77ff8fa9b661cce44f7329
tree46763546f4755622fde9fe7015a2f803cac76a1b
parent293d32df3939e5fec3df730738d9ef41bcc11952
cgroup: rename {manager_owns|unit_has}_root_cgroup() → .._host_root_cgroup()

Let's emphasize that this function checks for the host root cgroup, i.e.
returns false for the root cgroup when we run in a container where
CLONE_NEWCGROUP is used. There has been some confusion around this
already, for example cgroup_context_apply() uses the function
incorrectly (which we'll fix in a later commit).

Just some refactoring, not change in behaviour.
src/core/cgroup.c
src/core/cgroup.h
src/core/slice.c