summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Crequy <alban@kinvolk.io>2015-12-08 01:16:07 +0100
committerAlban Crequy <alban@kinvolk.io>2015-12-28 14:30:56 +0100
commitaa3be0dd36bae7f32daa35bc269d87f0d809d52f (patch)
tree658f05a4ccc0c91c0c7210b4d568eb851e9cd347
parentad798a641a775e795dc32916d57a3d16cebc8a7d (diff)
nspawn: userns and unified cgroup: chown cgroup.events
When starting a container in a new user namespace, systemd-nspawn chowns the cgroup knob files so they are usable by the container. But the cgroup knob file "cgroup.events" was missing. This file exists when the unified hierarchy is used.
-rw-r--r--src/nspawn/nspawn-cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c
index 270bcf010f..3c0e26ea5a 100644
--- a/src/nspawn/nspawn-cgroup.c
+++ b/src/nspawn/nspawn-cgroup.c
@@ -54,6 +54,7 @@ int chown_cgroup(pid_t pid, uid_t uid_shift) {
"tasks",
"notify_on_release",
"cgroup.procs",
+ "cgroup.events",
"cgroup.clone_children",
"cgroup.controllers",
"cgroup.subtree_control",