nspawn: enable all controllers we can for the "payload" subcgroup we create

In the unified hierarchy delegating controller access is safe, hence
make sure to enable all controllers for the "payload" subcgroup if we
create it, so that the container will have all controllers enabled the
nspawn service itself has.
This commit is contained in:
Lennart Poettering
2015-09-04 09:07:31 +02:00
parent 5f4c5fef66
commit 98e4d8d763
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -2163,7 +2163,7 @@ int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {
r = write_string_file(fs, s, 0);
if (r < 0)
log_warning_errno(r, "Failed to enable controller %s for %s (%s): %m", n, p, fs);
log_debug_errno(r, "Failed to enable controller %s for %s (%s): %m", n, p, fs);
}
}