Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
195 if (ns->mnt_ns) in free_nsproxy()
196 put_mnt_ns(ns->mnt_ns); in free_nsproxy()
426 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset()
/kernel/linux/linux-5.10/fs/
Dnamespace.c684 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()
1510 ns = p->mnt_ns; in umount_tree()
1515 p->mnt_ns = NULL; in umount_tree()
1697 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount()
1807 struct mnt_namespace *mnt_ns; in mnt_ns_loop() local
1811 mnt_ns = to_mnt_ns(get_proc_ns(dentry->d_inode)); in mnt_ns_loop()
[all …]
Dd_path.c105 struct mnt_namespace *mnt_ns; in prepend_path() local
121 mnt_ns = READ_ONCE(mnt->mnt_ns); in prepend_path()
123 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))
Dmount.h65 struct mnt_namespace *mnt_ns; /* containing namespace */ member
98 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted()
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()
272 return count_mounts(m->mnt_ns, child); in propagate_one()
Dproc_namespace.c255 if (!nsp || !nsp->mnt_ns) { in mounts_open_common()
260 ns = nsp->mnt_ns; in mounts_open_common()
Dfsopen.c122 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()
/kernel/linux/linux-5.10/include/linux/
Dnsproxy.h35 struct mnt_namespace *mnt_ns; member
/kernel/linux/linux-5.10/fs/devpts/
Dinode.c265 (current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns); in parse_mount_options()