/linux/kernel/ |
A D | nsproxy.c | 54 struct nsproxy *nsproxy; in create_nsproxy() local 57 if (nsproxy) in create_nsproxy() 59 return nsproxy; in create_nsproxy() 153 struct nsproxy *old_ns = tsk->nsproxy; in copy_namespaces() 184 tsk->nsproxy = new_ns; in copy_namespaces() 239 struct nsproxy *ns; in switch_task_namespaces() 244 ns = p->nsproxy; in switch_task_namespaces() 245 p->nsproxy = new; in switch_task_namespaces() 308 if (nsset->nsproxy) in put_nsset() 362 struct nsproxy *nsp; in validate_nsset() [all …]
|
A 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()
|
A D | pid_namespace.c | 352 if (task->nsproxy) { in pidns_for_children_get() 353 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get() 377 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install() local 402 put_pid_ns(nsproxy->pid_ns_for_children); in pidns_install() 403 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
|
A D | utsname_sysctl.c | 22 uts_ns = current->nsproxy->uts_ns; in get_uts()
|
A D | .nsproxy.o.cmd | 1 …nsproxy.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/… 3 source_kernel/nsproxy.o := kernel/nsproxy.c 5 deps_kernel/nsproxy.o := \ 603 include/linux/nsproxy.h \ 1381 kernel/nsproxy.o: $(deps_kernel/nsproxy.o) 1383 $(deps_kernel/nsproxy.o):
|
/linux/kernel/time/ |
A D | namespace.c | 246 struct nsproxy *nsproxy; in timens_get() local 249 nsproxy = task->nsproxy; in timens_get() 250 if (nsproxy) { in timens_get() 262 struct nsproxy *nsproxy; in timens_for_children_get() local 265 nsproxy = task->nsproxy; in timens_for_children_get() 266 if (nsproxy) { in timens_for_children_get() 288 struct nsproxy *nsproxy = nsset->nsproxy; in timens_install() local 300 nsproxy->time_ns = ns; in timens_install() 308 void timens_on_fork(struct nsproxy *nsproxy, struct task_struct *tsk) in timens_on_fork() argument 314 if (nsproxy->time_ns == nsproxy->time_ns_for_children) in timens_on_fork() [all …]
|
/linux/include/linux/ |
A 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()
|
A 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
|
A D | init_task.h | 27 extern struct nsproxy init_nsproxy;
|
A D | utsname.h | 81 return ¤t->nsproxy->uts_ns->name; in utsname()
|
/linux/kernel/cgroup/ |
A 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/ipc/ |
A 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()
|
A D | ipc_sysctl.c | 21 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() 111 struct user_namespace *user_ns = current->nsproxy->ipc_ns->user_ns; in proc_ipc_dointvec_minmax_checkpoint_restore()
|
A D | mq_sysctl.c | 16 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_mq()
|
A D | msg.c | 306 ns = current->nsproxy->ipc_ns; in ksys_msgget() 600 ns = current->nsproxy->ipc_ns; in ksys_msgctl() 732 ns = current->nsproxy->ipc_ns; in compat_ksys_msgctl() 851 ns = current->nsproxy->ipc_ns; in do_msgsnd() 1101 ns = current->nsproxy->ipc_ns; in do_msgrcv()
|
/linux/net/core/ |
A D | net_namespace.c | 688 struct nsproxy *nsproxy; in get_net_ns_by_pid() local 690 nsproxy = tsk->nsproxy; in get_net_ns_by_pid() 691 if (nsproxy) in get_net_ns_by_pid() 692 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1332 struct nsproxy *nsproxy; in netns_get() local 1335 nsproxy = task->nsproxy; in netns_get() 1336 if (nsproxy) in netns_get() 1337 net = get_net(nsproxy->net_ns); in netns_get() 1355 struct nsproxy *nsproxy = nsset->nsproxy; in netns_install() local 1362 put_net(nsproxy->net_ns); in netns_install() [all …]
|
/linux/fs/lockd/ |
A 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/net/sctp/ |
A D | sysctl.c | 373 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg() 418 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() 446 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() 484 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth() 513 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_udp_port() 554 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_probe_interval()
|
/linux/net/ |
A 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/fs/proc/ |
A 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()
|
/linux/fs/ |
A D | namespace.c | 808 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 3894 touch_mnt_namespace(current->nsproxy->mnt_ns); in SYSCALL_DEFINE2() 4293 init_task.nsproxy->mnt_ns = ns; in init_mount_tree() 4523 struct nsproxy *nsproxy; in mntns_get() local 4526 nsproxy = task->nsproxy; in mntns_get() 4527 if (nsproxy) { in mntns_get() 4528 ns = &nsproxy->mnt_ns->ns; in mntns_get() 4543 struct nsproxy *nsproxy = nsset->nsproxy; in mntns_install() local 4562 old_mnt_ns = nsproxy->mnt_ns; in mntns_install() 4563 nsproxy->mnt_ns = mnt_ns; in mntns_install() [all …]
|
A 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()
|
A D | proc_namespace.c | 246 struct nsproxy *nsp; in mounts_open_common() 257 nsp = task->nsproxy; in mounts_open_common()
|
/linux/fs/cifs/ |
A D | dns_resolve.c | 68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
|
/linux/fs/nfsd/ |
A D | fault_inject.c | 50 struct net *net = current->nsproxy->net_ns; in fault_inject_write()
|