Lines Matching refs:mnt_ns
740 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint()
849 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt()
954 struct mnt_namespace *n = parent->mnt_ns; in commit_tree()
960 m->mnt_ns = n; in commit_tree()
1204 if (likely(READ_ONCE(mnt->mnt_ns))) { in mntput_no_expire()
1294 real_mount(mnt)->mnt_ns = NULL; in mnt_make_shortterm()
1580 ns = p->mnt_ns; in umount_tree()
1585 p->mnt_ns = NULL; in umount_tree()
1767 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount()
1869 struct mnt_namespace *mnt_ns; in mnt_ns_loop() local
1873 mnt_ns = to_mnt_ns(get_proc_ns(dentry->d_inode)); in mnt_ns_loop()
1874 return current->nsproxy->mnt_ns->seq >= mnt_ns->seq; in mnt_ns_loop()
1967 ns = real_mount(mnt)->mnt_ns; in dissolve_on_fput()
2035 new_mnt->mnt_ns = MNT_NS_INTERNAL; in clone_private_mount()
2205 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in attach_recursive_mnt()
2207 struct mnt_namespace *ns = dest_mnt->mnt_ns; in attach_recursive_mnt()
2243 touch_mnt_namespace(source_mnt->mnt_ns); in attach_recursive_mnt()
2245 if (source_mnt->mnt_ns) { in attach_recursive_mnt()
2247 list_del_init(&source_mnt->mnt_ns->list); in attach_recursive_mnt()
2261 if (child->mnt_parent->mnt_ns->user_ns != user_ns) in attach_recursive_mnt()
2274 child->mnt_parent->mnt_ns->pending_mounts = 0; in attach_recursive_mnt()
2469 struct user_namespace *user_ns = current->nsproxy->mnt_ns->user_ns; in open_detached_copy()
2487 p->mnt_ns = ns; in open_detached_copy()
2608 touch_mnt_namespace(mnt->mnt_ns); in set_mount_attributes()
2771 if (!ns_capable(from->mnt_ns->user_ns, CAP_SYS_ADMIN)) in do_set_group()
2773 if (!ns_capable(to->mnt_ns->user_ns, CAP_SYS_ADMIN)) in do_set_group()
2843 ns = old->mnt_ns; in do_move_mount()
2938 if (!parent->mnt_ns) in do_add_mount()
3165 touch_mnt_namespace(mnt->mnt_ns); in mark_mounts_for_expiry()
3236 touch_mnt_namespace(m->mnt_ns); in shrink_submounts()
3504 q->mnt_ns = new_ns; in copy_mnt_ns()
3547 mnt->mnt_ns = ns; in mount_subtree()
3722 ns = alloc_mnt_ns(current->nsproxy->mnt_ns->user_ns, true); in SYSCALL_DEFINE3()
3728 mnt->mnt_ns = ns; in SYSCALL_DEFINE3()
3949 touch_mnt_namespace(current->nsproxy->mnt_ns); in SYSCALL_DEFINE2()
4014 if (!is_anon_ns(mnt->mnt_ns)) in can_idmap_mount()
4122 touch_mnt_namespace(mnt->mnt_ns); in mount_setattr_commit()
4170 if (!(mnt_has_parent(mnt) ? check_mnt(mnt) : is_anon_ns(mnt->mnt_ns))) in do_mount_setattr()
4397 m->mnt_ns = ns; in init_mount_tree()
4401 init_task.nsproxy->mnt_ns = ns; in init_mount_tree()
4464 real_mount(mnt)->mnt_ns = MNT_NS_INTERNAL; in kern_mount()
4506 ns_root.mnt = ¤t->nsproxy->mnt_ns->root->mnt; in current_chrooted()
4594 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in mount_too_revealing()
4635 ns = &nsproxy->mnt_ns->ns; in mntns_get()
4652 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; in mntns_install() local
4657 if (!ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN) || in mntns_install()
4662 if (is_anon_ns(mnt_ns)) in mntns_install()
4668 get_mnt_ns(mnt_ns); in mntns_install()
4669 old_mnt_ns = nsproxy->mnt_ns; in mntns_install()
4670 nsproxy->mnt_ns = mnt_ns; in mntns_install()
4673 err = vfs_path_lookup(mnt_ns->root->mnt.mnt_root, &mnt_ns->root->mnt, in mntns_install()
4677 nsproxy->mnt_ns = old_mnt_ns; in mntns_install()
4678 put_mnt_ns(mnt_ns); in mntns_install()