Searched refs:nsproxy (Results 1 – 14 of 14) sorted by relevance
/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 | 376 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()
|
D | utsname_sysctl.c | 22 uts_ns = current->nsproxy->uts_ns; in get_uts()
|
D | Makefile | 11 kthread.o sys_ni.o nsproxy.o \
|
D | fork.c | 1922 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()
|
D | sys.c | 1347 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/ |
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/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()
|
D | cgroup.c | 1390 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()
|
D | cpuset.c | 3784 current->nsproxy->cgroup_ns); in proc_cpuset_show()
|
/kernel/bpf/ |
D | net_namespace.c | 311 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()
|
D | offload.c | 99 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()
|
D | devmap.c | 687 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()
|