| /linux/kernel/ |
| H A D | nstree.c | 152 static inline struct ns_common *node_to_ns(const struct rb_node *node) in node_to_ns() 156 return rb_entry(node, struct ns_common, ns_tree_node.ns_node); in node_to_ns() 159 static inline struct ns_common *node_to_ns_unified(const struct rb_node *node) in node_to_ns_unified() 163 return rb_entry(node, struct ns_common, ns_unified_node.ns_node); in node_to_ns_unified() 166 static inline struct ns_common *node_to_ns_owner(const struct rb_node *node) in node_to_ns_owner() 170 return rb_entry(node, struct ns_common, ns_owner_node.ns_node); in node_to_ns_owner() 197 void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_add_raw() 219 struct ns_common *owner = &user_ns->ns; in __ns_tree_add_raw() 233 void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_remove() 253 struct ns_common *owner = &user_ns->ns; in __ns_tree_remove() [all …]
|
| H A D | nscommon.c | 11 static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops) in ns_debug() 56 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… in __ns_common_init() 92 void __ns_common_free(struct ns_common *ns) in __ns_common_free() 97 struct ns_common *__must_check ns_owner(struct ns_common *ns) in ns_owner() 164 void __ns_ref_active_put(struct ns_common *ns) in __ns_ref_active_put() 282 void __ns_ref_active_get(struct ns_common *ns) in __ns_ref_active_get()
|
| H A D | utsname.c | 106 static struct ns_common *utsns_get(struct task_struct *task) in utsns_get() 122 static void utsns_put(struct ns_common *ns) in utsns_put() 127 static int utsns_install(struct nsset *nsset, struct ns_common *new) in utsns_install() 142 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
|
| H A D | pid_namespace.c | 348 static struct ns_common *pidns_get(struct task_struct *task) in pidns_get() 361 static struct ns_common *pidns_for_children_get(struct task_struct *task) in pidns_for_children_get() 384 static void pidns_put(struct ns_common *ns) in pidns_put() 401 static int pidns_install(struct nsset *nsset, struct ns_common *ns) in pidns_install() 427 static struct ns_common *pidns_get_parent(struct ns_common *ns) in pidns_get_parent() 445 static struct user_namespace *pidns_owner(struct ns_common *ns) in pidns_owner()
|
| H A D | user_namespace.c | 1328 static struct ns_common *userns_get(struct task_struct *task) in userns_get() 1339 static void userns_put(struct ns_common *ns) in userns_put() 1344 static int userns_install(struct nsset *nsset, struct ns_common *ns) in userns_install() 1378 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner() 1396 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()
|
| /linux/include/linux/ |
| H A D | ns_common.h | 11 bool is_current_namespace(struct ns_common *ns); 12 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… 13 void __ns_common_free(struct ns_common *ns); 14 struct ns_common *__must_check ns_owner(struct ns_common *ns); 16 static __always_inline bool is_ns_init_inum(const struct ns_common *ns) in is_ns_init_inum() 23 static __always_inline bool is_ns_init_id(const struct ns_common *ns) in is_ns_init_id() 58 static __always_inline __must_check int __ns_ref_active_read(const struct ns_common *ns) in __ns_ref_active_read() 63 static __always_inline __must_check int __ns_ref_read(const struct ns_common *ns) in __ns_ref_read() 68 static __always_inline __must_check bool __ns_ref_put(struct ns_common *ns) in __ns_ref_put() 82 static __always_inline __must_check bool __ns_ref_get(struct ns_common *ns) in __ns_ref_get() [all …]
|
| H A D | proc_ns.h | 20 struct ns_common *(*get)(struct task_struct *task); 21 void (*put)(struct ns_common *ns); 22 int (*install)(struct nsset *nsset, struct ns_common *ns); 23 struct user_namespace *(*owner)(struct ns_common *ns); 24 struct ns_common *(*get_parent)(struct ns_common *ns); 68 #define get_proc_ns(inode) ((struct ns_common *)(inode)->i_private)
|
| H A D | nstree.h | 14 struct ns_common; 48 u64 __ns_tree_gen_id(struct ns_common *ns, u64 id); 49 void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree); 50 void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree); 51 struct ns_common *ns_tree_lookup_rcu(u64 ns_id, int ns_type); 52 struct ns_common *__ns_tree_adjoined_rcu(struct ns_common *ns, 56 static inline void __ns_tree_add(struct ns_common *ns, struct ns_tree_root *ns_tree, u64 id) in __ns_tree_add()
|
| H A D | user_namespace.h | 84 struct ns_common ns; 169 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns() 206 struct ns_common *ns_get_owner(struct ns_common *ns); 247 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
|
| H A D | mnt_namespace.h | 12 struct ns_common; 20 extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
|
| H A D | cgroup_namespace.h | 8 struct ns_common ns; 18 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
|
| H A D | uts_namespace.h | 15 struct ns_common ns; 21 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
|
| H A D | nsfs.h | 17 typedef struct ns_common *ns_get_path_helper_t(void *); 21 bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino);
|
| H A D | proc_fs.h | 239 struct ns_common; 240 int open_related_ns(struct ns_common *ns, 241 struct ns_common *(*get_ns)(struct ns_common *ns));
|
| H A D | pid_namespace.h | 41 struct ns_common ns; 57 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
|
| H A D | ipc_namespace.h | 80 struct ns_common ns; 132 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
|
| H A D | time_namespace.h | 26 struct ns_common ns; 36 static inline struct time_namespace *to_time_ns(struct ns_common *ns) in to_time_ns()
|
| /linux/fs/ |
| H A D | nsfs.c | 46 struct ns_common *ns = inode->i_private; in ns_dname() 60 struct ns_common *ns = inode->i_private; in nsfs_evict() 70 struct ns_common *ns; in ns_get_path_cb() 84 static struct ns_common *ns_get_path_task(void *private_data) in ns_get_path_task() 110 int open_namespace(struct ns_common *ns) in open_namespace() 123 int open_related_ns(struct ns_common *ns, in open_related_ns() 124 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns() 126 struct ns_common *relative; in open_related_ns() 195 struct ns_common *ns; in ns_ioctl() 347 struct ns_common *ns; in ns_get_name() [all …]
|
| H A D | pidfs.c | 478 struct ns_common *ns_common = NULL; in pidfd_ioctl() local 523 ns_common = to_ns_common(nsp->cgroup_ns); in pidfd_ioctl() 530 ns_common = to_ns_common(nsp->ipc_ns); in pidfd_ioctl() 536 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl() 542 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl() 549 ns_common = to_ns_common(nsp->pid_ns_for_children); in pidfd_ioctl() 556 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl() 563 ns_common = to_ns_common(nsp->time_ns_for_children); in pidfd_ioctl() 570 ns_common = to_ns_common(nsp->uts_ns); in pidfd_ioctl() 582 ns_common = to_ns_common(user_ns); in pidfd_ioctl() [all …]
|
| H A D | mount.h | 11 struct ns_common ns; 215 static inline struct mnt_namespace *to_mnt_ns(struct ns_common *ns) in to_mnt_ns()
|
| /linux/kernel/time/ |
| H A D | namespace.c | 264 static struct ns_common *timens_get(struct task_struct *task) in timens_get() 280 static struct ns_common *timens_for_children_get(struct task_struct *task) in timens_for_children_get() 296 static void timens_put(struct ns_common *ns) in timens_put() 307 static int timens_install(struct nsset *nsset, struct ns_common *new) in timens_install() 331 struct ns_common *nsc = &nsproxy->time_ns_for_children->ns; in timens_on_fork() 345 static struct user_namespace *timens_owner(struct ns_common *ns) in timens_owner() 370 struct ns_common *ns; in proc_timens_show_offsets() 386 struct ns_common *ns; in proc_timens_set_offset()
|
| /linux/kernel/cgroup/ |
| H A D | namespace.c | 92 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install() 112 static struct ns_common *cgroupns_get(struct task_struct *task) in cgroupns_get() 128 static void cgroupns_put(struct ns_common *ns) in cgroupns_put() 133 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
|
| /linux/ipc/ |
| H A D | namespace.c | 214 static struct ns_common *ipcns_get(struct task_struct *task) in ipcns_get() 228 static void ipcns_put(struct ns_common *ns) in ipcns_put() 233 static int ipcns_install(struct nsset *nsset, struct ns_common *new) in ipcns_install() 246 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
|
| /linux/include/net/ |
| H A D | net_namespace.h | 96 struct ns_common ns; 214 struct ns_common *get_net_ns(struct ns_common *ns); 238 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() 265 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 754 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() 773 struct ns_common *ns = get_proc_ns(file_inode(fd_file(f))); in get_net_ns_by_fd() 1504 static struct ns_common *netns_get(struct task_struct *task) 1518 static void netns_put(struct ns_common *ns) in netns_get() 1523 static int netns_install(struct nsset *nsset, struct ns_common *ns) in netns_put() 1537 static struct user_namespace *netns_owner(struct ns_common *ns) in netns_install()
|