]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgmanager: also handle named subsystems (like name=systemd)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 2 May 2014 18:36:32 +0000 (13:36 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 7 May 2014 03:54:39 +0000 (22:54 -0500)
commitcbf0bae67ca5c285c8770d893dfa1924eb5abfe9
treeb929fefdf9aff29d38f3ccac394efb0b67c17bb6
parent44a706bdaf1471dbddb05e10269a0d413d224ab5
cgmanager: also handle named subsystems (like name=systemd)

Read /proc/self/cgroup instead of /proc/cgroups, so as to catch
named subsystems.  Otherwise the contaienrs will not be fully
moved into the container cgroups.

Also free line which was being leaked.

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