Home
last modified time | relevance | path

Searched refs:nsproxy (Results 1 – 25 of 74) sorted by relevance

123

/linux-6.6.21/kernel/
Dnsproxy.c32 struct nsproxy init_nsproxy = {
52 static inline struct nsproxy *create_nsproxy(void) in create_nsproxy()
54 struct nsproxy *nsproxy; in create_nsproxy() local
56 nsproxy = kmem_cache_alloc(nsproxy_cachep, GFP_KERNEL); in create_nsproxy()
57 if (nsproxy) in create_nsproxy()
58 refcount_set(&nsproxy->count, 1); in create_nsproxy()
59 return nsproxy; in create_nsproxy()
67 static struct nsproxy *create_new_namespaces(unsigned long flags, in create_new_namespaces()
71 struct nsproxy *new_nsp; in create_new_namespaces()
78 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
[all …]
Dutsname.c122 struct nsproxy *nsproxy; in utsns_get() local
125 nsproxy = task->nsproxy; in utsns_get()
126 if (nsproxy) { in utsns_get()
127 ns = nsproxy->uts_ns; in utsns_get()
142 struct nsproxy *nsproxy = nsset->nsproxy; in utsns_install() local
150 put_uts_ns(nsproxy->uts_ns); in utsns_install()
151 nsproxy->uts_ns = ns; in utsns_install()
Dpid_namespace.c371 if (task->nsproxy) { in pidns_for_children_get()
372 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get()
396 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install() local
421 put_pid_ns(nsproxy->pid_ns_for_children); in pidns_install()
422 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
Dutsname_sysctl.c23 uts_ns = current->nsproxy->uts_ns; in get_uts()
/linux-6.6.21/kernel/time/
Dnamespace.c198 return current->nsproxy->time_ns->vvar_page; in find_timens_vvar_page()
264 struct nsproxy *nsproxy; in timens_get() local
267 nsproxy = task->nsproxy; in timens_get()
268 if (nsproxy) { in timens_get()
269 ns = nsproxy->time_ns; in timens_get()
280 struct nsproxy *nsproxy; in timens_for_children_get() local
283 nsproxy = task->nsproxy; in timens_for_children_get()
284 if (nsproxy) { in timens_for_children_get()
285 ns = nsproxy->time_ns_for_children; in timens_for_children_get()
306 struct nsproxy *nsproxy = nsset->nsproxy; in timens_install() local
[all …]
/linux-6.6.21/include/linux/
Dnsproxy.h31 struct nsproxy { struct
42 extern struct nsproxy init_nsproxy; argument
55 struct nsproxy *nsproxy; member
96 void switch_task_namespaces(struct task_struct *tsk, struct nsproxy *new);
98 void free_nsproxy(struct nsproxy *ns);
99 int unshare_nsproxy_namespaces(unsigned long, struct nsproxy **,
103 static inline void put_nsproxy(struct nsproxy *ns) in put_nsproxy()
109 static inline void get_nsproxy(struct nsproxy *ns) in get_nsproxy()
Dtime_namespace.h46 void timens_on_fork(struct nsproxy *nsproxy, struct task_struct *tsk);
67 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_monotonic()
74 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime()
81 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_boottime_ns()
88 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_sub_boottime()
98 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host()
138 static inline void timens_on_fork(struct nsproxy *nsproxy, in timens_on_fork() argument
Dinit_task.h27 extern struct nsproxy init_nsproxy;
Dutsname.h82 return &current->nsproxy->uts_ns->name; in utsname()
/linux-6.6.21/kernel/cgroup/
Dnamespace.c100 struct nsproxy *nsproxy = nsset->nsproxy; in cgroupns_install() local
108 if (cgroup_ns == nsproxy->cgroup_ns) in cgroupns_install()
112 put_cgroup_ns(nsproxy->cgroup_ns); in cgroupns_install()
113 nsproxy->cgroup_ns = cgroup_ns; in cgroupns_install()
121 struct nsproxy *nsproxy; in cgroupns_get() local
124 nsproxy = task->nsproxy; in cgroupns_get()
125 if (nsproxy) { in cgroupns_get()
126 ns = nsproxy->cgroup_ns; in cgroupns_get()
/linux-6.6.21/ipc/
Dnamespace.c217 struct nsproxy *nsproxy; in ipcns_get() local
220 nsproxy = task->nsproxy; in ipcns_get()
221 if (nsproxy) in ipcns_get()
222 ns = get_ipc_ns(nsproxy->ipc_ns); in ipcns_get()
235 struct nsproxy *nsproxy = nsset->nsproxy; in ipcns_install() local
241 put_ipc_ns(nsproxy->ipc_ns); in ipcns_install()
242 nsproxy->ipc_ns = get_ipc_ns(ns); in ipcns_install()
Dmq_sysctl.c71 return &current->nsproxy->ipc_ns->mq_set; in set_lookup()
76 return &current->nsproxy->ipc_ns->mq_set == set; in set_is_seen()
Dipc_sysctl.c185 return &current->nsproxy->ipc_ns->ipc_set; in set_lookup()
190 return &current->nsproxy->ipc_ns->ipc_set == set; in set_is_seen()
198 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in ipc_permissions()
Dmsg.c307 ns = current->nsproxy->ipc_ns; in ksys_msgget()
606 ns = current->nsproxy->ipc_ns; in ksys_msgctl()
738 ns = current->nsproxy->ipc_ns; in compat_ksys_msgctl()
857 ns = current->nsproxy->ipc_ns; in do_msgsnd()
1107 ns = current->nsproxy->ipc_ns; in do_msgrcv()
/linux-6.6.21/net/core/
Dnet_namespace.c708 struct nsproxy *nsproxy; in get_net_ns_by_pid() local
710 nsproxy = tsk->nsproxy; in get_net_ns_by_pid()
711 if (nsproxy) in get_net_ns_by_pid()
712 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid()
1352 struct nsproxy *nsproxy; in netns_get() local
1355 nsproxy = task->nsproxy; in netns_get()
1356 if (nsproxy) in netns_get()
1357 net = get_net(nsproxy->net_ns); in netns_get()
1375 struct nsproxy *nsproxy = nsset->nsproxy; in netns_install() local
1382 put_net(nsproxy->net_ns); in netns_install()
[all …]
/linux-6.6.21/fs/lockd/
Dprocfs.c25 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_write()
52 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_read()
/linux-6.6.21/net/sctp/
Dsysctl.c394 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg()
439 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min()
467 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max()
505 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth()
534 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_udp_port()
575 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_probe_interval()
/linux-6.6.21/kernel/bpf/
Dtcx.c13 struct net *net = current->nsproxy->net_ns; in tcx_prog_attach()
62 struct net *net = current->nsproxy->net_ns; in tcx_prog_detach()
125 struct net *net = current->nsproxy->net_ns; in tcx_prog_query()
312 struct net *net = current->nsproxy->net_ns; in tcx_link_attach()
/linux-6.6.21/net/
Dsysctl_net.c33 return &current->nsproxy->net_ns->sysctls; in net_ctl_header_lookup()
38 return &current->nsproxy->net_ns->sysctls == set; in is_seen()
/linux-6.6.21/fs/proc/
Dproc_net.c99 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net()
270 struct nsproxy *ns; in get_proc_task_net()
277 ns = task->nsproxy; in get_proc_task_net()
/linux-6.6.21/fs/
Dnamespace.c763 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
872 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt()
1844 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount()
1964 return current->nsproxy->mnt_ns->seq >= mnt_ns->seq; in mnt_ns_loop()
2304 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in attach_recursive_mnt()
2650 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in open_detached_copy()
3075 if (parent_mnt_to == current->nsproxy->mnt_ns->root) in can_move_mount_beneath()
4023 ns = alloc_mnt_ns(current->nsproxy->mnt_ns->user_ns, true); in SYSCALL_DEFINE3()
4255 touch_mnt_namespace(current->nsproxy->mnt_ns); in SYSCALL_DEFINE2()
4712 init_task.nsproxy->mnt_ns = ns; in init_mount_tree()
[all …]
Dproc_namespace.c246 struct nsproxy *nsp; in mounts_open_common()
257 nsp = task->nsproxy; in mounts_open_common()
/linux-6.6.21/fs/smb/client/
Ddns_resolve.c68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
/linux-6.6.21/fs/devpts/
Dinode.c247 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()
/linux-6.6.21/init/
Dinit_task.c123 .nsproxy = &init_nsproxy,

123