cgroup: cgroup namespace setns support
authorAditya Kali <adityakali@google.com>
Fri, 29 Jan 2016 08:54:07 +0000 (02:54 -0600)
committerTejun Heo <tj@kernel.org>
Tue, 16 Feb 2016 18:04:58 +0000 (13:04 -0500)
commita0530e087e648263f81a81d62ca020f66b54bcb0
tree64b8708f51ebfb707a0f825c397315837c86394b
parenta79a908fd2b080977b45bf103184b81c9d11ad07
cgroup: cgroup namespace setns support

setns on a cgroup namespace is allowed only if
task has CAP_SYS_ADMIN in its current user-namespace and
over the user-namespace associated with target cgroupns.
No implicit cgroup changes happen with attaching to another
cgroupns. It is expected that the somone moves the attaching
process under the target cgroupns-root.

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