Searched refs:nsproxy (Results 1 – 15 of 15) 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 | 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()
|
D | pid_namespace.c | 369 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()
|
D | utsname_sysctl.c | 23 uts_ns = current->nsproxy->uts_ns; in get_uts()
|
D | Makefile | 11 kthread.o sys_ni.o nsproxy.o \
|
D | fork.c | 2114 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()
|
D | sys.c | 1374 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/ |
D | namespace.c | 246 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/ |
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 | 1444 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()
|
D | cpuset.c | 4249 current->nsproxy->cgroup_ns); in proc_cpuset_show()
|
/kernel/bpf/ |
D | net_namespace.c | 312 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()
|
D | offload.c | 99 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()
|
D | cgroup_iter.c | 249 current->nsproxy->cgroup_ns); in bpf_iter_cgroup_show_fdinfo()
|
D | devmap.c | 931 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()
|