Searched refs:mnt_ns (Results 1 – 14 of 14) sorted by relevance
| /linux-6.15/fs/ |
| H A D | mount.h | 81 struct mnt_namespace *mnt_ns; /* containing namespace */ member 117 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted() 180 struct mnt_namespace *ns = mnt->mnt_ns; in move_from_ns() 192 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mnt_ns, 204 if ((m->mnt_ns && m->mnt_ns->n_fsnotify_marks) || in mnt_notify_add() 208 m->prev_ns = m->mnt_ns; in mnt_notify_add()
|
| H A D | nsfs.c | 130 static int copy_ns_info_to_user(const struct mnt_namespace *mnt_ns, in copy_ns_info_to_user() argument 142 kinfo->mnt_ns_id = mnt_ns->seq; in copy_ns_info_to_user() 143 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 187 struct mnt_namespace *mnt_ns; in ns_ioctl() local 220 mnt_ns = container_of(ns, struct mnt_namespace, ns); in ns_ioctl() 222 id = mnt_ns->seq; in ns_ioctl() 306 mnt_ns = get_sequential_mnt_ns(to_mnt_ns(ns), previous); in ns_ioctl() 307 if (IS_ERR(mnt_ns)) in ns_ioctl() 308 return PTR_ERR(mnt_ns); in ns_ioctl() 310 ns = to_ns_common(mnt_ns); in ns_ioctl()
|
| H A D | namespace.c | 1003 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 1177 mnt->mnt_ns = ns; in mnt_add_to_ns() 1902 ns = p->mnt_ns; in umount_tree() 2253 if (!mnt_ns) in mnt_ns_loop() 2256 return current->nsproxy->mnt_ns->seq >= mnt_ns->seq; in mnt_ns_loop() 2386 ns = m->mnt_ns; in dissolve_on_fput() 3637 ns = old->mnt_ns; in do_move_mount() 3659 if ((is_anon_ns(p->mnt_ns) && ns == p->mnt_ns)) in do_move_mount() 6000 mnt_ns = current->nsproxy->mnt_ns; in grab_requested_mnt_ns() 6004 return mnt_ns; in grab_requested_mnt_ns() [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() 122 if (!IS_ERR_OR_NULL(mnt_ns) && !is_anon_ns(mnt_ns)) in __prepend_path()
|
| 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() 235 if (m->mnt_ns->mntns_flags & MNTNS_PROPAGATING) in propagate_one() 275 return count_mounts(m->mnt_ns, child); in propagate_one()
|
| H A D | pnode.h | 15 #define IS_MNT_NEW(m) (!(m)->mnt_ns)
|
| H A D | proc_namespace.c | 254 if (!nsp || !nsp->mnt_ns) { in mounts_open_common() 259 ns = nsp->mnt_ns; in mounts_open_common()
|
| H A D | pidfs.c | 442 get_mnt_ns(nsp->mnt_ns); in pidfd_ioctl() 443 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl()
|
| H A D | fhandle.c | 306 ns_capable(real_mount(root->mnt)->mnt_ns->user_ns, in may_decode_fh()
|
| /linux-6.15/kernel/ |
| H A D | nsproxy.c | 38 .mnt_ns = NULL, 78 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces() 79 if (IS_ERR(new_nsp->mnt_ns)) { in create_new_namespaces() 80 err = PTR_ERR(new_nsp->mnt_ns); in create_new_namespaces() 140 if (new_nsp->mnt_ns) in create_new_namespaces() 141 put_mnt_ns(new_nsp->mnt_ns); in create_new_namespaces() 192 if (ns->mnt_ns) in free_nsproxy() 193 put_mnt_ns(ns->mnt_ns); in free_nsproxy() 440 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset()
|
| /linux-6.15/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test_ns.c | 61 static int get_mnt_ns_id(const char *mnt_ns, uint64_t *mnt_ns_id) in get_mnt_ns_id() argument 63 int fd = open(mnt_ns, O_RDONLY); in get_mnt_ns_id() 67 mnt_ns, strerror(errno)); in get_mnt_ns_id() 74 mnt_ns, strerror(errno)); in get_mnt_ns_id()
|
| /linux-6.15/fs/notify/ |
| H A D | fdinfo.c | 125 struct mnt_namespace *mnt_ns = fsnotify_conn_mntns(mark->connector); in fanotify_fdinfo() local 128 mnt_ns->ns.inum, mflags, mark->mask, mark->ignore_mask); in fanotify_fdinfo()
|
| /linux-6.15/include/linux/ |
| H A D | nsproxy.h | 36 struct mnt_namespace *mnt_ns; member
|
| /linux-6.15/fs/devpts/ |
| H A D | inode.c | 449 current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns) in devpts_init_fs_context()
|