]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: userns and unified cgroup: chown cgroup.events 2233/head
authorAlban Crequy <alban@kinvolk.io>
Tue, 8 Dec 2015 00:16:07 +0000 (01:16 +0100)
committerAlban Crequy <alban@kinvolk.io>
Mon, 28 Dec 2015 13:30:56 +0000 (14:30 +0100)
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.

src/nspawn/nspawn-cgroup.c

index 270bcf010fcfa46be24af468a1791818188b3af8..3c0e26ea5a33cb1ff73c37f3a9c716653c7750f1 100644 (file)
@@ -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",