Home
last modified time | relevance | path

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

/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.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.c369 if (task->nsproxy) { in pidns_for_children_get()
370 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get()
394 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install() local
419 put_pid_ns(nsproxy->pid_ns_for_children); in pidns_install()
420 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
Dutsname_sysctl.c23 uts_ns = current->nsproxy->uts_ns; in get_uts()
DMakefile11 kthread.o sys_ni.o nsproxy.o \
Dfork.c2114 struct nsproxy *nsp = current->nsproxy; in copy_process()
2386 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
3267 struct nsproxy *new_nsproxy = NULL; in ksys_unshare()
Dsys.c1374 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
1428 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
/kernel/time/
Dnamespace.c246 struct nsproxy *nsproxy; in timens_get() local
249 nsproxy = task->nsproxy; in timens_get()
250 if (nsproxy) { in timens_get()
251 ns = nsproxy->time_ns; 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()
267 ns = nsproxy->time_ns_for_children; in timens_for_children_get()
288 struct nsproxy *nsproxy = nsset->nsproxy; in timens_install() local
299 put_time_ns(nsproxy->time_ns); in timens_install()
[all …]
/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()
Dcgroup.c1444 cset = current->nsproxy->cgroup_ns->root_cset; in current_cgns_cgroup_from_root()
1467 cset = current->nsproxy->cgroup_ns->root_cset; in current_cgns_cgroup_dfl()
1972 if (current->nsproxy->cgroup_ns == &init_cgroup_ns) { in apply_cgroup_root_flags()
2262 ctx->ns = current->nsproxy->cgroup_ns; in cgroup_init_fs_context()
4040 ctx->ns = current->nsproxy->cgroup_ns; in cgroup_file_open()
6314 current->nsproxy->cgroup_ns); in proc_cgroup_show()
6476 current->nsproxy->cgroup_ns); in cgroup_css_set_fork()
6675 struct css_set *rcset = child->nsproxy->cgroup_ns->root_cset; in cgroup_post_fork()
6678 child->nsproxy->cgroup_ns->root_cset = cset; in cgroup_post_fork()
Dcpuset.c4249 current->nsproxy->cgroup_ns); in proc_cpuset_show()
/kernel/bpf/
Dnet_namespace.c312 net = current->nsproxy->net_ns; in netns_bpf_prog_attach()
401 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
Doffload.c99 offload->netdev = dev_get_by_index(current->nsproxy->net_ns, in bpf_prog_offload_init()
361 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc()
Dcgroup_iter.c249 current->nsproxy->cgroup_ns); in bpf_iter_cgroup_show_fdinfo()
Ddevmap.c931 return __dev_map_update_elem(current->nsproxy->net_ns, in dev_map_update_elem()
991 return __dev_map_hash_update_elem(current->nsproxy->net_ns, in dev_map_hash_update_elem()