]> git.ipfire.org Git - thirdparty/lxc.git/commit
Use 'cgm listcontrollers' list rather than /proc/self/cgroups
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 1 May 2015 21:11:28 +0000 (21:11 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 17:12:22 +0000 (13:12 -0400)
commit867c24677b6b1613f990cae3bde5ac99d08c798c
treed4a20b35794a47c44c63e0a9a34b46565f6aaaaa
parentafdd5d4515f5b5c20f6cb38cd52cf4623eefd92f
Use 'cgm listcontrollers' list rather than /proc/self/cgroups

to populate the list of subsystems to use.

Cgmanager can be started with some subsystems disabled (i.e.
cgmanager -M cpuset).  If lxc using cgmanager then uses the
/proc/self/cgroup output to determine which controllers to use,
it will fail when trying to do things to cpuset.  Instead, ask
cgmanager which controllers to use.

This still defers (per patch 1/1) to the lxc.cgroup.use values.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c