]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/utils.h
cgmanager: support lxc.mount.auto = cgroup
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 30 Jan 2014 14:18:30 +0000 (14:18 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 31 Jan 2014 10:34:08 +0000 (10:34 +0000)
commitc476bdce46f5fd8e9ee261e40c86988211cbc278
tree6a4973c687bc119529ad76d9411a3276d093889a
parent5d89765574f559de43a96ab5a59475bf1b6f991d
cgmanager: support lxc.mount.auto = cgroup

If it (or any variation thereof) is in the container configuration,
then mount /sys/fs/cgroup/cgmanager.lower (if it exists) or
/sys/fs/cgroup/cgmanager into the container so it can run a
cgproxy.

Also make sure to clear our groups when we start or attach to a
container.  Else with unprivileged containers we end up with
lots of nogroups listed in /proc/1/status.

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