]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgmanager: attach: never use 'all' controller
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 27 May 2015 10:05:16 +0000 (10:05 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 17:16:12 +0000 (13:16 -0400)
commitb428d1beb149c5d1002fdf3c89174e5ee99fe312
tree94772a4e3b4a66dee4f165afce8e0e8250e72fc4
parentdf323d8c406b3f4f92c0d5d98e286179a730ff3b
cgmanager: attach: never use 'all' controller

We were using 'all' controller if current was in all the
same cgroup.  That doesn't suffice.  We'd have to check
the target.  At that point we may as well just attach
controller by controller.

An optimization to consider is to check the /proc/initpid/cgroup
for all identical controllers.  Let's start by just getting it
right.

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