| /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 | user_namespace.c | 1327 static struct ns_common *userns_get(struct task_struct *task) in userns_get() 1338 static void userns_put(struct ns_common *ns) in userns_put() 1343 static int userns_install(struct nsset *nsset, struct ns_common *ns) in userns_install() 1377 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner() 1395 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() 60 static __always_inline __must_check int __ns_ref_active_read(const struct ns_common *ns) in __ns_ref_active_read() 65 static __always_inline __must_check int __ns_ref_read(const struct ns_common *ns) in __ns_ref_read() 70 static __always_inline __must_check bool __ns_ref_put(struct ns_common *ns) in __ns_ref_put() 84 static __always_inline __must_check bool __ns_ref_get(struct ns_common *ns) in __ns_ref_get() [all …]
|
| H A D | kobject_ns.h | 19 struct ns_common; 43 struct ns_common *(*grab_current_ns)(void); 44 const struct ns_common *(*netlink_ns)(struct sock *sk); 45 const struct ns_common *(*initial_ns)(void); 46 void (*drop_ns)(struct ns_common *); 55 struct ns_common *kobj_ns_grab_current(enum kobj_ns_type type); 56 void kobj_ns_drop(enum kobj_ns_type type, struct ns_common *ns);
|
| 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 | user_namespace.h | 7 #include <linux/ns_common.h> 87 struct ns_common ns; 172 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns() 209 struct ns_common *ns_get_owner(struct ns_common *ns); in get_user_ns() 250 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
|
| H A D | sysfs.h | 399 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const struct ns_common *ns); 402 const struct ns_common *new_ns); 405 const struct ns_common *new_ns); 413 const struct ns_common *ns); 422 const struct ns_common *ns); 440 const struct ns_common *new_ns); 505 static inline int sysfs_create_dir_ns(struct kobject *kobj, const struct ns_common *ns) in sysfs_create_dir_ns() 515 const char *new_name, const struct ns_common *new_ns) in sysfs_rename_dir_ns() 522 const struct ns_common *new_ns) in sysfs_move_dir_ns() 540 const struct ns_common *ns) in sysfs_create_file_ns() [all …]
|
| 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 | 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()
|
| /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/include/net/ |
| H A D | net_namespace.h | 97 struct ns_common ns; 222 struct ns_common *get_net_ns(struct ns_common *ns); 246 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() 270 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns() 315 void net_drop_ns(struct ns_common *);
|
| /linux/fs/ |
| H A D | pidfs.c | 534 struct ns_common *ns_common = NULL; in pidfd_ioctl() local 593 ns_common = to_ns_common(nsp->cgroup_ns); in pidfd_ioctl() 600 ns_common = to_ns_common(nsp->ipc_ns); in pidfd_ioctl() 606 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl() 612 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl() 619 ns_common = to_ns_common(nsp->pid_ns_for_children); in pidfd_ioctl() 626 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl() 633 ns_common = to_ns_common(nsp->time_ns_for_children); in pidfd_ioctl() 640 ns_common = to_ns_common(nsp->uts_ns); in pidfd_ioctl() 651 ns_common = to_ns_common(user_ns); in pidfd_ioctl() [all …]
|
| /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/fs/sysfs/ |
| H A D | sysfs.h | 32 kgid_t gid, const struct ns_common *ns); 35 kuid_t uid, kgid_t gid, const struct ns_common *ns);
|
| H A D | dir.c | 40 int sysfs_create_dir_ns(struct kobject *kobj, const struct ns_common *ns) in sysfs_create_dir_ns() 106 const struct ns_common *new_ns) in sysfs_rename_dir_ns() 118 const struct ns_common *new_ns) in sysfs_move_dir_ns()
|
| H A D | symlink.c | 124 const struct ns_common *ns = NULL; in sysfs_delete_link() 168 const struct ns_common *new_ns) in sysfs_rename_link_ns() 171 const struct ns_common *old_ns = NULL; in sysfs_rename_link_ns()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 544 void net_drop_ns(struct ns_common *ns) in net_passive_dec() 764 struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() 783 struct ns_common *ns = get_proc_ns(file_inode(fd_file(f))); in get_net_ns_by_fd() 1515 static struct ns_common *netns_get(struct task_struct *task) in netns_get() 1529 static void netns_put(struct ns_common *ns) in netns_put() 1534 static int netns_install(struct nsset *nsset, struct ns_common *ns) in netns_install() 1548 static struct user_namespace *netns_owner(struct ns_common *ns) in netns_owner()
|
| H A D | net-sysfs.c | 1163 static const struct ns_common *rx_queue_namespace(const struct kobject *kobj) in rx_queue_namespace() 1177 const struct ns_common *ns = rx_queue_namespace(kobj); in rx_queue_get_ownership() 1913 static const struct ns_common *netdev_queue_namespace(const struct kobject *kobj) in netdev_queue_namespace() 1927 const struct ns_common *ns = netdev_queue_namespace(kobj); in netdev_queue_get_ownership() 2167 static struct ns_common *net_grab_current_ns(void) in net_grab_current_ns() 2177 static const struct ns_common *net_initial_ns(void) in net_initial_ns() 2182 static const struct ns_common *net_netlink_ns(struct sock *sk) in net_netlink_ns() 2234 static const struct ns_common *net_namespace(const struct device *d) in net_namespace() 2398 const struct ns_common *ns) in netdev_class_create_file_ns() 2405 const struct ns_common *ns) in netdev_class_remove_file_ns()
|
| /linux/fs/nfs/ |
| H A D | sysfs.c | 131 static const struct ns_common *nfs_netns_client_namespace(const struct kobject *kobj) in nfs_netns_client_namespace() 161 static const struct ns_common *nfs_netns_namespace(const struct kobject *kobj) in nfs_netns_namespace() 356 static const struct ns_common *nfs_netns_server_namespace(const struct kobject *kobj) in nfs_netns_server_namespace()
|
| /linux/lib/ |
| H A D | kobject.c | 30 const struct ns_common *kobject_namespace(const struct kobject *kobj) in kobject_namespace() 1090 struct ns_common *kobj_ns_grab_current(enum kobj_ns_type type) in kobj_ns_grab_current() 1092 struct ns_common *ns = NULL; in kobj_ns_grab_current() 1103 void kobj_ns_drop(enum kobj_ns_type type, struct ns_common *ns) in kobj_ns_drop()
|