]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups/cgfsng: adapt to new cgroup2 delegation 1907/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Nov 2017 00:50:55 +0000 (01:50 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Nov 2017 00:53:31 +0000 (01:53 +0100)
commit0e17357c37c79323b067f42258b863e3dbb6c18a
treeb35b8283626cddf9c98d7648949f1e1616a092d5
parent29e4eb31231312fc73c064ce3f7282fa9d41ba64
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