]> 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>
Wed, 1 Jul 2015 17:41:07 +0000 (13:41 -0400)
commit499b4e1cf30319cdf1eec439131f5b26b8f31e24
tree87d7c4fe0c7e5a3e815d4affe3600cc1f2773211
parent02f3244fcdec0255597ba2a077e73c9512c5900a
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