summaryrefslogtreecommitdiff
path: root/src/core/slice.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-20 22:42:16 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-23 12:24:37 +0100
commit611c4f8afb2a941b8d77ff8fa9b661cce44f7329 (patch)
tree46763546f4755622fde9fe7015a2f803cac76a1b /src/core/slice.c
parent293d32df3939e5fec3df730738d9ef41bcc11952 (diff)
downloadsystemd-611c4f8afb2a941b8d77ff8fa9b661cce44f7329.tar.gz
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.
Diffstat (limited to 'src/core/slice.c')
-rw-r--r--src/core/slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/slice.c b/src/core/slice.c
index 74d056f7bc..dc087680e1 100644
--- a/src/core/slice.c
+++ b/src/core/slice.c
@@ -330,7 +330,7 @@ static void slice_enumerate_perpetual(Manager *m) {
assert(m);
r = slice_make_perpetual(m, SPECIAL_ROOT_SLICE, &u);
- if (r >= 0 && manager_owns_root_cgroup(m)) {
+ if (r >= 0 && manager_owns_host_root_cgroup(m)) {
Slice *s = SLICE(u);
/* If we are managing the root cgroup then this means our root slice covers the whole system, which