]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
cgmanager: chown cgroups to the container root
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 24 Jan 2014 05:56:15 +0000 (23:56 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 22:27:44 +0000 (17:27 -0500)
commit0996e18ad5153151ffb36cb646d36e5086d4ea54
treed943809e360c5845b07cab56057494c54f8a0bee
parenta38c2e6f8dfe7b48410b0c4719c963de6513de0c
cgmanager: chown cgroups to the container root

After this patch, starting an unprivileged container using
cgmanager gets the cgroup chown to the container root, so
that it can install the cgmanager (proxy) and make cgroup
requests.

(Still desirable and not in this patch is the automatic setup of
/sys/fs/cgroup/manager/sock, which you can currently do with
two lxc.mount.entries)

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