]> 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>
Tue, 26 May 2015 15:14:27 +0000 (11:14 -0400)
commit7f7948206b72f9ad979256b17df950abbc4ac12f
treedb93726c97c6f3ce94c975acf0097caca4d5baae
parentcb6d63a7aadc47b39c0dd62d6661a091dfdf1a4d
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