Home
last modified time | relevance | path

Searched refs:mnt_ns (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/fs/
Dnsfs.c131 static int copy_ns_info_to_user(const struct mnt_namespace *mnt_ns, in copy_ns_info_to_user() argument
143 kinfo->mnt_ns_id = mnt_ns->seq; in copy_ns_info_to_user()
144 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user()
162 struct mnt_namespace *mnt_ns; in ns_ioctl() local
191 mnt_ns = container_of(ns, struct mnt_namespace, ns); in ns_ioctl()
193 id = mnt_ns->seq; in ns_ioctl()
278 mnt_ns = lookup_prev_mnt_ns(to_mnt_ns(ns)); in ns_ioctl()
280 mnt_ns = lookup_next_mnt_ns(to_mnt_ns(ns)); in ns_ioctl()
281 if (IS_ERR(mnt_ns)) in ns_ioctl()
282 return PTR_ERR(mnt_ns); in ns_ioctl()
[all …]
Dmount.h63 struct mnt_namespace *mnt_ns; /* containing namespace */ member
97 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted()
152 rb_erase(&mnt->mnt_node, &mnt->mnt_ns->mounts); in move_from_ns()
157 struct mnt_namespace *__lookup_next_mnt_ns(struct mnt_namespace *mnt_ns, bool previous);
Dnamespace.c861 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
966 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt()
1128 mnt->mnt_ns = ns; in mnt_add_to_ns()
1149 struct mnt_namespace *n = parent->mnt_ns; in commit_tree()
1400 if (likely(READ_ONCE(mnt->mnt_ns))) { in mntput_no_expire()
1490 real_mount(mnt)->mnt_ns = NULL; in mnt_make_shortterm()
1787 ns = p->mnt_ns; in umount_tree()
1792 p->mnt_ns = NULL; in umount_tree()
1976 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount()
2105 struct mnt_namespace *mnt_ns; in mnt_ns_loop() local
[all …]
Dd_path.c112 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()
Dpnode.h15 #define IS_MNT_NEW(m) (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns))
Dpidfs.c162 get_mnt_ns(nsp->mnt_ns); in pidfd_ioctl()
163 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl()
Dpnode.c45 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()
Dproc_namespace.c254 if (!nsp || !nsp->mnt_ns) { in mounts_open_common()
259 ns = nsp->mnt_ns; in mounts_open_common()
Dfhandle.c269 ns_capable(real_mount(root->mnt)->mnt_ns->user_ns, in may_decode_fh()
/linux-6.12.1/kernel/
Dnsproxy.c38 .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.12.1/tools/testing/selftests/filesystems/statmount/
Dstatmount_test_ns.c61 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.12.1/include/linux/
Dnsproxy.h36 struct mnt_namespace *mnt_ns; member
/linux-6.12.1/fs/devpts/
Dinode.c246 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()