Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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 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 …]
Dutsname.c125 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()
Dpid_namespace.c359 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()
Dutsname_sysctl.c22 uts_ns = current->nsproxy->uts_ns; in get_uts()
/kernel/linux/linux-5.10/kernel/time/
Dnamespace.c249 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/
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);
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()
Dtime_namespace.h48 int timens_on_fork(struct nsproxy *nsproxy, struct task_struct *tsk);
68 struct timens_offsets *ns_offsets = &current->nsproxy->time_ns->offsets; in timens_add_monotonic()
75 struct timens_offsets *ns_offsets = &current->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
Dinit_task.h27 extern struct nsproxy init_nsproxy;
Dutsname.h82 return &current->nsproxy->uts_ns->name; in utsname()
Dsysctl.h35 struct nsproxy;
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/ipc/
Dnamespace.c184 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()
Dipc_sysctl.c20 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()
Dmq_sysctl.c16 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_mq()
Dmsg.c306 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()
/kernel/linux/linux-5.10/net/core/
Dnet_namespace.c716 struct nsproxy *nsproxy; in get_net_ns_by_pid() local
718 nsproxy = tsk->nsproxy; in get_net_ns_by_pid()
719 if (nsproxy) in get_net_ns_by_pid()
720 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid()
1364 struct nsproxy *nsproxy; in netns_get() local
1367 nsproxy = task->nsproxy; in netns_get()
1368 if (nsproxy) in netns_get()
1369 net = get_net(nsproxy->net_ns); in netns_get()
1387 struct nsproxy *nsproxy = nsset->nsproxy; in netns_install() local
1394 put_net(nsproxy->net_ns); in netns_install()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/proc/
Dproc_net.c90 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/net/sctp/
Dsysctl.c353 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg()
398 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min()
426 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max()
464 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth()
/kernel/linux/linux-5.10/fs/
Dnamespace.c684 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 = &current->nsproxy->mnt_ns->root->mnt; in current_chrooted()
[all …]
Dfsopen.c122 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()
Dproc_namespace.c243 struct nsproxy *nsp; in mounts_open_common()
254 nsp = task->nsproxy; in mounts_open_common()
/kernel/linux/linux-5.10/fs/cifs/
Ddns_resolve.c80 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
/kernel/linux/linux-5.10/fs/nfsd/
Dfault_inject.c50 struct net *net = current->nsproxy->net_ns; in fault_inject_write()

123