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.

pid: support ns lookup

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

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

+4
+4
kernel/pid_namespace.c
··· 23 23 #include <linux/sched/task.h> 24 24 #include <linux/sched/signal.h> 25 25 #include <linux/idr.h> 26 + #include <linux/nstree.h> 26 27 #include <uapi/linux/wait.h> 27 28 #include "pid_sysctl.h" 28 29 ··· 123 122 ns->memfd_noexec_scope = pidns_memfd_noexec_scope(parent_pid_ns); 124 123 #endif 125 124 125 + ns_tree_add(ns); 126 126 return ns; 127 127 128 128 out_free_inum: ··· 149 147 150 148 static void destroy_pid_namespace(struct pid_namespace *ns) 151 149 { 150 + ns_tree_remove(ns); 152 151 unregister_pidns_sysctls(ns); 153 152 154 153 ns_free_inum(&ns->ns); ··· 476 473 #endif 477 474 478 475 register_pid_ns_sysctl_table_vm(); 476 + ns_tree_add(&init_pid_ns); 479 477 return 0; 480 478 } 481 479