/linux-6.6.21/kernel/ |
D | nsproxy.c | 32 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 …]
|
D | utsname.c | 122 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()
|
D | pid_namespace.c | 371 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()
|
D | utsname_sysctl.c | 23 uts_ns = current->nsproxy->uts_ns; in get_uts()
|
/linux-6.6.21/kernel/time/ |
D | namespace.c | 198 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/ |
D | nsproxy.h | 31 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()
|
D | time_namespace.h | 46 void timens_on_fork(struct nsproxy *nsproxy, struct task_struct *tsk); 67 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_monotonic() 74 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_boottime() 81 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_boottime_ns() 88 struct timens_offsets *ns_offsets = ¤t->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
|
D | init_task.h | 27 extern struct nsproxy init_nsproxy;
|
D | utsname.h | 82 return ¤t->nsproxy->uts_ns->name; in utsname()
|
/linux-6.6.21/kernel/cgroup/ |
D | namespace.c | 100 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/ |
D | namespace.c | 217 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()
|
D | mq_sysctl.c | 71 return ¤t->nsproxy->ipc_ns->mq_set; in set_lookup() 76 return ¤t->nsproxy->ipc_ns->mq_set == set; in set_is_seen()
|
D | ipc_sysctl.c | 185 return ¤t->nsproxy->ipc_ns->ipc_set; in set_lookup() 190 return ¤t->nsproxy->ipc_ns->ipc_set == set; in set_is_seen() 198 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in ipc_permissions()
|
D | msg.c | 307 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/ |
D | net_namespace.c | 708 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/ |
D | procfs.c | 25 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/ |
D | sysctl.c | 394 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/ |
D | tcx.c | 13 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/ |
D | sysctl_net.c | 33 return ¤t->nsproxy->net_ns->sysctls; in net_ctl_header_lookup() 38 return ¤t->nsproxy->net_ns->sysctls == set; in is_seen()
|
/linux-6.6.21/fs/proc/ |
D | proc_net.c | 99 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/ |
D | namespace.c | 763 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 …]
|
D | proc_namespace.c | 246 struct nsproxy *nsp; in mounts_open_common() 257 nsp = task->nsproxy; in mounts_open_common()
|
/linux-6.6.21/fs/smb/client/ |
D | dns_resolve.c | 68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
|
/linux-6.6.21/fs/devpts/ |
D | inode.c | 247 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()
|
/linux-6.6.21/init/ |
D | init_task.c | 123 .nsproxy = &init_nsproxy,
|