Searched refs:nsproxy (Results 1 – 14 of 14) sorted by relevance
/kernel/ |
D | nsproxy.c | 29 struct nsproxy init_nsproxy = { 45 static inline struct nsproxy *create_nsproxy(void) in create_nsproxy() 47 struct nsproxy *nsproxy; in create_nsproxy() local 49 nsproxy = kmem_cache_alloc(nsproxy_cachep, GFP_KERNEL); in create_nsproxy() 50 if (nsproxy) in create_nsproxy() 51 atomic_set(&nsproxy->count, 1); in create_nsproxy() 52 return nsproxy; in create_nsproxy() 60 static struct nsproxy *create_new_namespaces(unsigned long flags, in create_new_namespaces() 64 struct nsproxy *new_nsp; in create_new_namespaces() 71 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() 143 static int utsns_install(struct nsproxy *nsproxy, struct ns_common *new) in utsns_install() argument 152 put_uts_ns(nsproxy->uts_ns); in utsns_install() 153 nsproxy->uts_ns = ns; in utsns_install()
|
D | pid_namespace.c | 360 if (task->nsproxy) { in pidns_for_children_get() 361 ns = task->nsproxy->pid_ns_for_children; in pidns_for_children_get() 383 static int pidns_install(struct nsproxy *nsproxy, struct ns_common *ns) in pidns_install() argument 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()
|
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 | user_namespace.c | 1256 static int userns_install(struct nsproxy *nsproxy, struct ns_common *ns) in userns_install() argument
|
D | fork.c | 1825 current->nsproxy->pid_ns_for_children)) in copy_process() 2038 pid = alloc_pid(p->nsproxy->pid_ns_for_children); in copy_process() 2828 struct nsproxy *new_nsproxy = NULL; in ksys_unshare()
|
D | sys.c | 1312 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 1365 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
|
D | sysctl_binary.c | 1232 struct net *net = current->nsproxy->net_ns; in get_sysctl()
|
/kernel/cgroup/ |
D | namespace.c | 98 static int cgroupns_install(struct nsproxy *nsproxy, struct ns_common *ns) in cgroupns_install() argument 107 if (cgroup_ns == nsproxy->cgroup_ns) in cgroupns_install() 111 put_cgroup_ns(nsproxy->cgroup_ns); in cgroupns_install() 112 nsproxy->cgroup_ns = cgroup_ns; in cgroupns_install() 120 struct nsproxy *nsproxy; in cgroupns_get() local 123 nsproxy = task->nsproxy; in cgroupns_get() 124 if (nsproxy) { in cgroupns_get() 125 ns = nsproxy->cgroup_ns; in cgroupns_get()
|
D | cgroup.c | 1374 cset = current->nsproxy->cgroup_ns->root_cset; in current_cgns_cgroup_from_root() 1856 if (current->nsproxy->cgroup_ns == &init_cgroup_ns) { in apply_cgroup_root_flags() 2198 ctx->ns = current->nsproxy->cgroup_ns; in cgroup_init_fs_context() 3737 struct cgroup_namespace *ns = current->nsproxy->cgroup_ns; in cgroup_file_write() 4719 struct cgroup_namespace *ns = current->nsproxy->cgroup_ns; in cgroup_procs_write_permission() 5903 current->nsproxy->cgroup_ns); in proc_cgroup_show()
|
D | cpuset.c | 3598 current->nsproxy->cgroup_ns); in proc_cpuset_show()
|
/kernel/bpf/ |
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 | 659 return __dev_map_update_elem(current->nsproxy->net_ns, in dev_map_update_elem() 716 return __dev_map_hash_update_elem(current->nsproxy->net_ns, in dev_map_hash_update_elem()
|