Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: support ns lookup

Support the generic ns lookup infrastructure to support file handles for
namespaces.

Signed-off-by: Christian Brauner <brauner@kernel.org>

+6
+1
ipc/msgutil.c
··· 15 15 #include <linux/proc_ns.h> 16 16 #include <linux/uaccess.h> 17 17 #include <linux/sched.h> 18 + #include <linux/nstree.h> 18 19 19 20 #include "util.h" 20 21
+3
ipc/namespace.c
··· 15 15 #include <linux/mount.h> 16 16 #include <linux/user_namespace.h> 17 17 #include <linux/proc_ns.h> 18 + #include <linux/nstree.h> 18 19 #include <linux/sched/task.h> 19 20 20 21 #include "util.h" ··· 86 85 87 86 sem_init_ns(ns); 88 87 shm_init_ns(ns); 88 + ns_tree_add(ns); 89 89 90 90 return ns; 91 91 ··· 203 201 mq_clear_sbinfo(ns); 204 202 spin_unlock(&mq_lock); 205 203 204 + ns_tree_remove(ns); 206 205 if (llist_add(&ns->mnt_llist, &free_ipc_list)) 207 206 schedule_work(&free_ipc_work); 208 207 }
+2
ipc/shm.c
··· 45 45 #include <linux/mount.h> 46 46 #include <linux/ipc_namespace.h> 47 47 #include <linux/rhashtable.h> 48 + #include <linux/nstree.h> 48 49 49 50 #include <linux/uaccess.h> 50 51 ··· 149 148 static int __init ipc_ns_init(void) 150 149 { 151 150 shm_init_ns(&init_ipc_ns); 151 + ns_tree_add(&init_ipc_ns); 152 152 return 0; 153 153 } 154 154