/kernel/linux/linux-5.10/kernel/ |
H A D | nsproxy.c | 39 .mnt_ns = NULL, 79 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces() 80 if (IS_ERR(new_nsp->mnt_ns)) { in create_new_namespaces() 81 err = PTR_ERR(new_nsp->mnt_ns); in create_new_namespaces() 141 if (new_nsp->mnt_ns) in create_new_namespaces() 142 put_mnt_ns(new_nsp->mnt_ns); in create_new_namespaces() 196 if (ns->mnt_ns) in free_nsproxy() 197 put_mnt_ns(ns->mnt_ns); in free_nsproxy() 432 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | nsproxy.c | 39 .mnt_ns = NULL, 79 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces() 80 if (IS_ERR(new_nsp->mnt_ns)) { in create_new_namespaces() 81 err = PTR_ERR(new_nsp->mnt_ns); in create_new_namespaces() 141 if (new_nsp->mnt_ns) in create_new_namespaces() 142 put_mnt_ns(new_nsp->mnt_ns); in create_new_namespaces() 193 if (ns->mnt_ns) in free_nsproxy() 194 put_mnt_ns(ns->mnt_ns); in free_nsproxy() 446 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | namespace.c | 763 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() 872 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 1031 struct mnt_namespace *n = parent->mnt_ns; in commit_tree() 1037 m->mnt_ns = n; in commit_tree() 1281 if (likely(READ_ONCE(mnt->mnt_ns))) { in mntput_no_expire() 1284 * ->mnt_ns can change under us. However, if it's in mntput_no_expire() 1287 * turning ->mnt_ns NULL. So if we observe it in mntput_no_expire() 1371 real_mount(mnt)->mnt_ns = NULL; in mnt_make_shortterm() 1657 ns = p->mnt_ns; in umount_tree() 1959 struct mnt_namespace *mnt_ns; mnt_ns_loop() local 4963 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; mntns_install() local [all...] |
H A D | d_path.c | 112 struct mnt_namespace *mnt_ns; in __prepend_path() local 120 mnt_ns = READ_ONCE(mnt->mnt_ns); in __prepend_path() 121 /* open-coded is_mounted() to use local mnt_ns */ in __prepend_path() 122 if (!IS_ERR_OR_NULL(mnt_ns) && !is_anon_ns(mnt_ns)) in __prepend_path()
|
H A D | pnode.h | 15 #define IS_MNT_NEW(m) (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns))
|
H A D | mount.h | 64 struct mnt_namespace *mnt_ns; /* containing namespace */ member 97 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted()
|
H A D | pnode.c | 45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root() 65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 271 return count_mounts(m->mnt_ns, child); in propagate_one()
|
H A D | proc_namespace.c | 258 if (!nsp || !nsp->mnt_ns) { in mounts_open_common() 263 ns = nsp->mnt_ns; in mounts_open_common()
|
/kernel/linux/common_modules/container_escape_detection/include/ |
H A D | ced_detection_points.h | 36 struct mnt_namespace *mnt_ns; member 44 info->mnt_ns = nsproxy->mnt_ns; in ns_info_record()
|
/kernel/linux/linux-5.10/fs/ |
H A D | namespace.c | 684 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() 793 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 898 struct mnt_namespace *n = parent->mnt_ns; in commit_tree() 904 m->mnt_ns = n; in commit_tree() 1146 if (likely(READ_ONCE(mnt->mnt_ns))) { in mntput_no_expire() 1149 * ->mnt_ns can change under us. However, if it's in mntput_no_expire() 1152 * turning ->mnt_ns NULL. So if we observe it in mntput_no_expire() 1510 ns = p->mnt_ns; in umount_tree() 1515 p->mnt_ns in umount_tree() 1807 struct mnt_namespace *mnt_ns; mnt_ns_loop() local 4091 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; mntns_install() local [all...] |
H A D | d_path.c | 105 struct mnt_namespace *mnt_ns; in prepend_path() local 121 mnt_ns = READ_ONCE(mnt->mnt_ns); in prepend_path() 122 /* open-coded is_mounted() to use local mnt_ns */ in prepend_path() 123 if (!IS_ERR_OR_NULL(mnt_ns) && !is_anon_ns(mnt_ns)) in prepend_path()
|
H A D | pnode.h | 15 #define IS_MNT_NEW(m) (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns))
|
H A D | mount.h | 65 struct mnt_namespace *mnt_ns; /* containing namespace */ member 98 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted()
|
H A D | pnode.c | 45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root() 65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 272 return count_mounts(m->mnt_ns, child); in propagate_one()
|
H A D | fsopen.c | 122 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 165 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE3()
|
H A D | proc_namespace.c | 255 if (!nsp || !nsp->mnt_ns) { in mounts_open_common() 260 ns = nsp->mnt_ns; in mounts_open_common()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | nsproxy.h | 35 struct mnt_namespace *mnt_ns; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | nsproxy.h | 35 struct mnt_namespace *mnt_ns; member
|
/kernel/linux/common_modules/container_escape_detection/core/ |
H A D | ced_detection.c | 154 if (a->mnt_ns == b->ns.mnt_ns && a->pid_ns_for_children == b->ns.pid_ns in has_same_nsproxy()
|
/kernel/linux/linux-5.10/fs/devpts/ |
H A D | inode.c | 265 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()
|
/kernel/linux/linux-6.6/fs/devpts/ |
H A D | inode.c | 247 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()
|