[GIT PULL] cgroup namespace support for v4.6-rc1
From: Tejun Heo
Date: Fri Mar 18 2016 - 15:09:42 EST
Hello, Linus.
These are changes to implement namespace support for cgroup which has
been pending for quite some time now. It is very straight-forward and
only affects what part of cgroup hierarchies are visible. After
unsharing, mounting a cgroup fs will be scoped to the cgroups the task
belonged to at the time of unsharing and the cgroup paths exposed to
userland would be adjusted accordingly.
The branch is forked off of cgroup/for-4.6, so it'd be best to pull
cgroup/for-4.6 before this branch.
Thanks.
The following changes since commit 223ffb29f9723a4b485cacf6dc7e6d639fffc322:
cgroup: provide cgroup_nov1= to disable controllers in v1 mounts (2016-02-12 15:01:45 -0500)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.6-ns
for you to fetch changes up to fa5ff8a1c43fc7b78353059899edf3cbedf54e9f:
cgroup: fix and restructure error handling in copy_cgroup_ns() (2016-02-29 16:22:52 -0500)
----------------------------------------------------------------
Aditya Kali (5):
kernfs: Add API to generate relative kernfs path
sched: new clone flag CLONE_NEWCGROUP for cgroup namespace
cgroup: introduce cgroup namespaces
cgroup: cgroup namespace setns support
kernfs: define kernfs_node_dentry
Serge Hallyn (3):
cgroup: mount cgroupns-root when inside non-init cgroupns
cgroup: Add documentation for cgroup namespaces
Add FS_USERNS_FLAG to cgroup fs
Tejun Heo (2):
cgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns()
cgroup: fix and restructure error handling in copy_cgroup_ns()
Documentation/cgroup-v2.txt | 147 ++++++++++++++++++++++++++++
fs/kernfs/dir.c | 191 ++++++++++++++++++++++++++++++------
fs/kernfs/mount.c | 69 +++++++++++++
fs/proc/namespaces.c | 3 +
include/linux/cgroup.h | 49 ++++++++++
include/linux/kernfs.h | 11 ++-
include/linux/nsproxy.h | 2 +
include/linux/proc_ns.h | 4 +
include/uapi/linux/sched.h | 3 +-
kernel/cgroup.c | 229 +++++++++++++++++++++++++++++++++++++++++++-
kernel/cpuset.c | 8 +-
kernel/fork.c | 2 +-
kernel/nsproxy.c | 19 +++-
13 files changed, 689 insertions(+), 48 deletions(-)
--
tejun