aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index f1dd4b076210..d6504338e284 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -6421,12 +6421,18 @@ static void cgroupns_put(struct ns_common *ns)
6421 put_cgroup_ns(to_cg_ns(ns)); 6421 put_cgroup_ns(to_cg_ns(ns));
6422} 6422}
6423 6423
6424static struct user_namespace *cgroupns_owner(struct ns_common *ns)
6425{
6426 return to_cg_ns(ns)->user_ns;
6427}
6428
6424const struct proc_ns_operations cgroupns_operations = { 6429const struct proc_ns_operations cgroupns_operations = {
6425 .name = "cgroup", 6430 .name = "cgroup",
6426 .type = CLONE_NEWCGROUP, 6431 .type = CLONE_NEWCGROUP,
6427 .get = cgroupns_get, 6432 .get = cgroupns_get,
6428 .put = cgroupns_put, 6433 .put = cgroupns_put,
6429 .install = cgroupns_install, 6434 .install = cgroupns_install,
6435 .owner = cgroupns_owner,
6430}; 6436};
6431 6437
6432static __init int cgroup_namespaces_init(void) 6438static __init int cgroup_namespaces_init(void)