]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/cgroup.c
cgroup: mount cgroupns-root when inside non-init cgroupns
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 29 Jan 2016 08:54:09 +0000 (02:54 -0600)
committerTejun Heo <tj@kernel.org>
Tue, 16 Feb 2016 18:04:59 +0000 (13:04 -0500)
commited82571b1a14ab2bfbede2bb2c209700495749fc
treeb0c92f0509559a4bfc3c68940fbf8c9814455e14
parentfb3c8315650f89a1993fb3ae3e74e9c7e4a1c9c0
cgroup: mount cgroupns-root when inside non-init cgroupns

This patch enables cgroup mounting inside userns when a process
as appropriate privileges. The cgroup filesystem mounted is
rooted at the cgroupns-root. Thus, in a container-setup, only
the hierarchy under the cgroupns-root is exposed inside the container.
This allows container management tools to run inside the containers
without depending on any global state.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c