Home
last modified time | relevance | path

Searched refs:nsproxy (Results 1 – 14 of 14) 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.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.c376 if (task->nsproxy) { in pidns_for_children_get()
377 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get()
401 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install() local
426 put_pid_ns(nsproxy->pid_ns_for_children); in pidns_install()
427 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
Dutsname_sysctl.c22 uts_ns = current->nsproxy->uts_ns; in get_uts()
DMakefile11 kthread.o sys_ni.o nsproxy.o \
Dfork.c1922 struct nsproxy *nsp = current->nsproxy; in copy_process()
2190 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
3019 struct nsproxy *new_nsproxy = NULL; in ksys_unshare()
Dsys.c1347 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
1400 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
/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/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.c1390 cset = current->nsproxy->cgroup_ns->root_cset; in current_cgns_cgroup_from_root()
1910 if (current->nsproxy->cgroup_ns == &init_cgroup_ns) { in apply_cgroup_root_flags()
2188 ctx->ns = current->nsproxy->cgroup_ns; in cgroup_init_fs_context()
3818 ctx->ns = current->nsproxy->cgroup_ns; in cgroup_file_open()
6051 current->nsproxy->cgroup_ns); in proc_cgroup_show()
6178 current->nsproxy->cgroup_ns); in cgroup_css_set_fork()
6359 struct css_set *rcset = child->nsproxy->cgroup_ns->root_cset; in cgroup_post_fork()
6362 child->nsproxy->cgroup_ns->root_cset = cset; in cgroup_post_fork()
Dcpuset.c3784 current->nsproxy->cgroup_ns); in proc_cpuset_show()
/kernel/bpf/
Dnet_namespace.c311 net = current->nsproxy->net_ns; in netns_bpf_prog_attach()
400 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()
364 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc()
Ddevmap.c687 return __dev_map_update_elem(current->nsproxy->net_ns, in dev_map_update_elem()
747 return __dev_map_hash_update_elem(current->nsproxy->net_ns, in dev_map_hash_update_elem()