]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgmanager: have root escape to root cgroup before starting
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 3 Feb 2014 21:11:16 +0000 (15:11 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 3 Feb 2014 21:33:08 +0000 (16:33 -0500)
commit04cb990db544f11aa9dea866b5ca2865fdc8c527
tree61d08cec7e627a56d6c5b46f1df0d05f2bf3562b
parentc08a0b7c4e459f32a939391bc5c9667eb7c7ab5c
cgmanager: have root escape to root cgroup before starting

If a user in cgroup /a/b/c does 'lxc-start -n u1', then u1
should be started under /a/b/c/u1.  However if he does
'sudo lxc-start -n u1', then that cgroup shoudl start under
/lxc/u1.

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