/kernel/linux/linux-5.10/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 atomic_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 | 125 struct nsproxy *nsproxy; in utsns_get() local 128 nsproxy = task->nsproxy; in utsns_get() 129 if (nsproxy) { in utsns_get() 130 ns = nsproxy->uts_ns; in utsns_get() 145 struct nsproxy *nsproxy = nsset->nsproxy; in utsns_install() local 153 put_uts_ns(nsproxy->uts_ns); in utsns_install() 154 nsproxy->uts_ns = ns; in utsns_install()
|
D | pid_namespace.c | 359 if (task->nsproxy) { in pidns_for_children_get() 360 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get() 384 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install() local 409 put_pid_ns(nsproxy->pid_ns_for_children); in pidns_install() 410 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
|
D | utsname_sysctl.c | 22 uts_ns = current->nsproxy->uts_ns; in get_uts()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | namespace.c | 249 struct nsproxy *nsproxy; in timens_get() local 252 nsproxy = task->nsproxy; in timens_get() 253 if (nsproxy) { in timens_get() 254 ns = nsproxy->time_ns; in timens_get() 265 struct nsproxy *nsproxy; in timens_for_children_get() local 268 nsproxy = task->nsproxy; in timens_for_children_get() 269 if (nsproxy) { in timens_for_children_get() 270 ns = nsproxy->time_ns_for_children; in timens_for_children_get() 291 struct nsproxy *nsproxy = nsset->nsproxy; in timens_install() local 302 put_time_ns(nsproxy->time_ns); in timens_install() [all …]
|
/kernel/linux/linux-5.10/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); 97 void free_nsproxy(struct nsproxy *ns); 98 int unshare_nsproxy_namespaces(unsigned long, struct nsproxy **, 102 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 | 48 int timens_on_fork(struct nsproxy *nsproxy, struct task_struct *tsk); 68 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_monotonic() 75 struct timens_offsets *ns_offsets = ¤t->nsproxy->time_ns->offsets; in timens_add_boottime() 85 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() 125 static inline int timens_on_fork(struct nsproxy *nsproxy, in timens_on_fork() argument
|
D | io_uring.h | 15 struct nsproxy *nsproxy; member
|
D | init_task.h | 27 extern struct nsproxy init_nsproxy;
|
D | utsname.h | 82 return ¤t->nsproxy->uts_ns->name; in utsname()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/ipc/ |
D | namespace.c | 184 struct nsproxy *nsproxy; in ipcns_get() local 187 nsproxy = task->nsproxy; in ipcns_get() 188 if (nsproxy) in ipcns_get() 189 ns = get_ipc_ns(nsproxy->ipc_ns); in ipcns_get() 202 struct nsproxy *nsproxy = nsset->nsproxy; in ipcns_install() local 208 put_ipc_ns(nsproxy->ipc_ns); in ipcns_install() 209 nsproxy->ipc_ns = get_ipc_ns(ns); in ipcns_install()
|
D | ipc_sysctl.c | 20 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_ipc() 51 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in proc_ipc_dointvec_minmax_orphans() 91 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in proc_ipc_sem_dointvec() 97 ret = sem_check_semmni(current->nsproxy->ipc_ns); in proc_ipc_sem_dointvec()
|
D | mq_sysctl.c | 16 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_mq()
|
/kernel/linux/linux-5.10/net/core/ |
D | net_namespace.c | 709 struct nsproxy *nsproxy; in get_net_ns_by_pid() local 711 nsproxy = tsk->nsproxy; in get_net_ns_by_pid() 712 if (nsproxy) in get_net_ns_by_pid() 713 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1357 struct nsproxy *nsproxy; in netns_get() local 1360 nsproxy = task->nsproxy; in netns_get() 1361 if (nsproxy) in netns_get() 1362 net = get_net(nsproxy->net_ns); in netns_get() 1380 struct nsproxy *nsproxy = nsset->nsproxy; in netns_install() local 1387 put_net(nsproxy->net_ns); in netns_install() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | sysctl.c | 343 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg() 388 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() 416 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() 454 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | proc_net.c | 90 p->net = get_net(current->nsproxy->net_ns); in bpf_iter_init_seq_net() 260 struct nsproxy *ns; in get_proc_task_net() 267 ns = task->nsproxy; in get_proc_task_net()
|
/kernel/linux/linux-5.10/fs/ |
D | namespace.c | 684 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() 793 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 1697 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount() 1812 return current->nsproxy->mnt_ns->seq >= mnt_ns->seq; in mnt_ns_loop() 2141 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in attach_recursive_mnt() 2405 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in open_detached_copy() 3564 ns = alloc_mnt_ns(current->nsproxy->mnt_ns->user_ns, true); in SYSCALL_DEFINE3() 3788 touch_mnt_namespace(current->nsproxy->mnt_ns); in SYSCALL_DEFINE2() 3828 init_task.nsproxy->mnt_ns = ns; in init_mount_tree() 3934 ns_root.mnt = ¤t->nsproxy->mnt_ns->root->mnt; in current_chrooted() [all …]
|
D | proc_namespace.c | 243 struct nsproxy *nsp; in mounts_open_common() 254 nsp = task->nsproxy; in mounts_open_common()
|
D | fsopen.c | 122 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 165 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE3()
|
D | io-wq.c | 69 struct nsproxy *restore_nsproxy; 167 current->nsproxy = worker->restore_nsproxy; in __io_worker_unuse() 337 worker->restore_nsproxy = current->nsproxy; in io_worker_start() 484 current->nsproxy = work->identity->nsproxy; in io_impersonate_work()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | dns_resolve.c | 80 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | fault_inject.c | 50 struct net *net = current->nsproxy->net_ns; in fault_inject_write()
|