]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroup.c
Automatic mounting: add more ways to mount the cgroup filesystem
authorChristian Seiler <christian@iwakd.de>
Tue, 24 Sep 2013 20:45:08 +0000 (22:45 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 27 Sep 2013 15:14:14 +0000 (10:14 -0500)
commit7997d7da4dfcaad50a0dcbcae8e0681bc5613f46
treed39a1fa90787c505b0c8f2434aaadfc58a44578d
parent5f62730e91c01937861b45646b00e570208217fc
Automatic mounting: add more ways to mount the cgroup filesystem

This adds quite a few more ways to mount the cgroup filesystem
automatically:

 - Specify ro/rw/mixed:
       - ro: everything mounted read-only
       - rw: everything mounted read-write
       - mixed: only container's own cgroup is rw, rest ro
                (default)
 - Add cgroup-full that mounts the entire cgroup tree to the
   corresponding directories. ro/rw/mixed also apply here.

Signed-off-by: Christian Seiler <christian@iwakd.de>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c
src/lxc/cgroup.h
src/lxc/conf.c