Home
last modified time | relevance | path

Searched refs:new_ns (Results 1 – 8 of 8) sorted by relevance

/linux/kernel/cgroup/
H A Dnamespace.c24 struct cgroup_namespace *new_ns __free(kfree) = NULL; in alloc_cgroup_ns()
27 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_common_init(new_ns); in alloc_cgroup_ns()
33 return no_free_ptr(new_ns); in alloc_cgroup_ns()
52 struct cgroup_namespace *new_ns; in copy_cgroup_ns() local
77 new_ns = alloc_cgroup_ns(); in copy_cgroup_ns()
78 if (IS_ERR(new_ns)) { in copy_cgroup_ns()
81 return new_ns; in copy_cgroup_ns()
84 new_ns->user_ns = get_user_ns(user_ns); in copy_cgroup_ns()
[all …]
/linux/kernel/
H A Dutsname.c82 struct uts_namespace *new_ns; in copy_utsname() local
90 new_ns = clone_uts_ns(user_ns, old_ns); in copy_utsname()
93 return new_ns; in copy_utsname()
H A Dnsproxy.c171 struct nsproxy *new_ns; in copy_namespaces() local
195 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()
196 if (IS_ERR(new_ns)) in copy_namespaces()
197 return PTR_ERR(new_ns); in copy_namespaces()
200 timens_on_fork(new_ns, tsk); in copy_namespaces()
202 nsproxy_ns_active_get(new_ns); in copy_namespaces()
203 tsk->nsproxy = new_ns; in copy_namespaces()
/linux/fs/sysfs/
H A Dsymlink.c167 const char *old, const char *new, const void *new_ns) in sysfs_rename_link_ns() argument
192 result = kernfs_rename_ns(kn, parent, new, new_ns); in sysfs_rename_link_ns()
/linux/include/linux/
H A Dsysfs.h402 const void *new_ns);
405 const void *new_ns);
440 const void *new_ns);
515 const char *new_name, const void *new_ns) in sysfs_rename_dir_ns() argument
522 const void *new_ns) in sysfs_move_dir_ns() argument
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsetup.c137 int switch_save_ns(int new_ns) in switch_save_ns() argument
141 switch_ns(new_ns); in switch_save_ns()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1209 int original_ns, new_ns, ret; in test_namespace() local
1227 new_ns = open("/proc/self/ns/uts", O_RDONLY); in test_namespace()
1228 if (new_ns == -1) { in test_namespace()
1229 ret = new_ns; in test_namespace()
1233 ret = fstat(new_ns, &stat_buf); in test_namespace()
1234 close(new_ns); in test_namespace()
1248 new_ns = open("/proc/self/ns/uts", O_RDONLY); in test_namespace()
1249 if (new_ns == -1) { in test_namespace()
1250 ret = new_ns; in test_namespace()
1254 ret = fstat(new_ns, &stat_buf); in test_namespace()
[all …]
/linux/fs/kernfs/
H A Ddir.c1744 const char *new_name, const void *new_ns) in kernfs_rename_ns() argument
1774 if ((old_parent == new_parent) && (kn->ns == new_ns) && in kernfs_rename_ns()
1779 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns()
1804 kn->ns = new_ns; in kernfs_rename_ns()
1812 kn->ns = new_ns; in kernfs_rename_ns()