]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups/cgfsng: adapt to new cgroup2 delegation
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Nov 2017 00:50:55 +0000 (01:50 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 11 Nov 2017 10:11:12 +0000 (11:11 +0100)
commit4cd7c764f6fe2611b65779c1236f86c6c4e9f80a
treef27a31ae2b53da6ca76466061dc7333289e630a4
parent87d372a51da05572cf5c8df01bf01a3a0074c2a2
cgroups/cgfsng: adapt to new cgroup2 delegation

In order to enable proper unprivileged cgroup delegation on newer kernels we not
just need to delegate the "cgroup.procs" file but also "cgroup.threads". But
don't report an error in case it doesn't exist. Also delegate
"cgroup.subtree_control" to enable delegation of controllers to descendant
cgroups.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c