Home
last modified time | relevance | path

Searched refs:new_ns (Results 1 – 9 of 9) 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_obj(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/fs/sysfs/
H A Ddir.c106 const struct ns_common *new_ns) in sysfs_rename_dir_ns() argument
112 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns()
118 const struct ns_common *new_ns) in sysfs_move_dir_ns() argument
126 return kernfs_rename_ns(kn, new_parent, NULL, new_ns); in sysfs_move_dir_ns()
H A Dsymlink.c168 const struct ns_common *new_ns) in sysfs_rename_link_ns() argument
193 result = kernfs_rename_ns(kn, parent, new, new_ns); in sysfs_rename_link_ns()
/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()
/linux/fs/
H A Dnamespace.c3213 struct mnt_namespace *new_ns; in vfs_open_tree()
3232 new_ns = alloc_mnt_ns(user_ns, false); in vfs_open_tree()
3233 if (IS_ERR(new_ns)) in vfs_open_tree()
3234 return ERR_CAST(new_ns); in vfs_open_tree()
3244 free_mnt_ns(new_ns); in vfs_open_tree()
3276 emptied_ns = new_ns; in can_change_locked_flags()
3293 mnt_add_to_ns(new_ns, mnt); in change_mount_ro_state()
3294 new_ns->nr_mounts++; in change_mount_ro_state()
3297 new_ns->root = new_ns_root; in change_mount_ro_state()
3298 ns_tree_add_raw(new_ns); in change_mount_ro_state()
3107 struct mnt_namespace *new_ns; create_new_namespace() local
3189 struct mnt_namespace *new_ns; open_new_namespace() local
4204 struct mnt_namespace *new_ns; alloc_mnt_ns() local
4242 struct mnt_namespace *new_ns; copy_mnt_ns() local
[all...]
/linux/include/linux/
H A Dsysfs.h402 const struct ns_common *new_ns);
405 const struct ns_common *new_ns);
440 const struct ns_common *new_ns);
515 const char *new_name, const struct ns_common *new_ns) in sysfs_rename_dir_ns() argument
522 const struct ns_common *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.c1456 int original_ns, new_ns, ret; in run_stdlib()
1474 new_ns = open("/proc/self/ns/uts", O_RDONLY); in run_stdlib()
1475 if (new_ns == -1) { in run_stdlib()
1476 ret = new_ns; in run_stdlib()
1480 ret = fstat(new_ns, &stat_buf); in run_stdlib()
1481 close(new_ns); in run_stdlib()
1495 new_ns = open("/proc/self/ns/uts", O_RDONLY); in run_stdlib()
1496 if (new_ns == -1) { in run_stdlib()
1497 ret = new_ns; in run_stdlib()
1501 ret = fstat(new_ns, in run_stdlib()
1209 int original_ns, new_ns, ret; test_namespace() local
[all...]
/linux/security/apparmor/
H A Ddomain.c1174 struct aa_ns *ns, *new_ns; in change_hat() local
1199 new_ns = labels_ns(new); in change_hat()
1207 if (new_ns != ns) { in change_hat()
1209 ns = new_ns; in change_hat()