Home
last modified time | relevance | path

Searched refs:ns_common (Results 1 – 25 of 57) sorted by relevance

123

/linux/kernel/
H A Dnstree.c152 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 Dnscommon.c11 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 Dutsname.c106 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 Dpid_namespace.c348 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()
/linux/include/linux/
H A Dns_common.h11 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 Dkobject_ns.h19 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 Dproc_ns.h20 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 Dnstree.h14 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 Dkernfs.h26 struct ns_common;
213 const struct ns_common *ns; /* namespace tag */
335 struct ns_common *ns_tag; /* Namespace tag of the mount (or NULL) */
411 const struct ns_common *ns);
414 const struct ns_common *ns);
433 const struct ns_common *ns);
442 const struct ns_common *ns,
454 const struct ns_common *ns);
456 const char *new_name, const struct ns_common *new_ns);
467 const struct ns_common *kernfs_super_ns(struct super_block *sb);
[all …]
H A Duser_namespace.h84 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 Dsysfs.h399 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 Dmnt_namespace.h12 struct ns_common;
20 extern struct ns_common *from_mnt_ns(struct mnt_namespace *);
H A Dcgroup_namespace.h8 struct ns_common ns;
18 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns()
H A Duts_namespace.h15 struct ns_common ns;
21 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
H A Dnsfs.h17 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);
/linux/fs/
H A Dnsfs.c46 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()
102 struct file *open_namespace_file(struct ns_common *ns) in open_namespace_file()
123 int open_namespace(struct ns_common *ns) in open_namespace()
136 int open_related_ns(struct ns_common *ns, in open_related_ns()
137 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns()
139 struct ns_common *relative; in open_related_ns()
219 struct ns_common *ns; in ns_ioctl()
[all …]
H A Dpidfs.c509 struct ns_common *ns_common = NULL; in pidfd_ioctl() local
554 ns_common = to_ns_common(nsp->cgroup_ns); in pidfd_ioctl()
561 ns_common = to_ns_common(nsp->ipc_ns); in pidfd_ioctl()
567 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl()
573 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl()
580 ns_common = to_ns_common(nsp->pid_ns_for_children); in pidfd_ioctl()
587 ns_common = to_ns_common(nsp->time_ns); in pidfd_ioctl()
594 ns_common = to_ns_common(nsp->time_ns_for_children); in pidfd_ioctl()
601 ns_common = to_ns_common(nsp->uts_ns); in pidfd_ioctl()
612 ns_common = to_ns_common(user_ns); in pidfd_ioctl()
[all …]
/linux/kernel/time/
H A Dnamespace.c264 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 Dnamespace.c92 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 Dnet_namespace.h97 struct ns_common ns;
219 struct ns_common *get_net_ns(struct ns_common *ns);
243 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns()
267 static inline struct net *to_net_ns(struct ns_common *ns) in to_net_ns()
312 void net_drop_ns(struct ns_common *);
/linux/fs/sysfs/
H A Dmount.c58 struct ns_common *ns; in sysfs_init_fs_context()
86 struct ns_common *ns = (struct ns_common *)kernfs_super_ns(sb); in sysfs_kill_sb()
H A Ddir.c40 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 Dsymlink.c124 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()
H A Dsysfs.h32 kgid_t gid, const struct ns_common *ns);
35 kuid_t uid, kgid_t gid, const struct ns_common *ns);
/linux/ipc/
H A Dnamespace.c214 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()

123