Searched refs:new_ns (Results 1 – 3 of 3) sorted by relevance
24 struct cgroup_namespace *new_ns; in alloc_cgroup_ns() local27 new_ns = kzalloc(sizeof(struct cgroup_namespace), GFP_KERNEL_ACCOUNT); in alloc_cgroup_ns()28 if (!new_ns) in alloc_cgroup_ns()30 ret = ns_alloc_inum(&new_ns->ns); in alloc_cgroup_ns()32 kfree(new_ns); in alloc_cgroup_ns()35 refcount_set(&new_ns->ns.count, 1); in alloc_cgroup_ns()36 new_ns->ns.ops = &cgroupns_operations; in alloc_cgroup_ns()37 return new_ns; in alloc_cgroup_ns()54 struct cgroup_namespace *new_ns; in copy_cgroup_ns() local79 new_ns = alloc_cgroup_ns(); in copy_cgroup_ns()[all …]
155 struct nsproxy *new_ns; in copy_namespaces() local178 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()179 if (IS_ERR(new_ns)) in copy_namespaces()180 return PTR_ERR(new_ns); in copy_namespaces()182 timens_on_fork(new_ns, tsk); in copy_namespaces()184 tsk->nsproxy = new_ns; in copy_namespaces()
92 struct uts_namespace *new_ns; in copy_utsname() local100 new_ns = clone_uts_ns(user_ns, old_ns); in copy_utsname()103 return new_ns; in copy_utsname()