| /linux/fs/ |
| H A D | mount.h | 89 struct mnt_namespace *mnt_ns; member 144 return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); in is_mounted() 202 struct mnt_namespace *ns = READ_ONCE(m->mnt_ns); in anon_ns_root() 219 struct mnt_namespace *ns = mnt->mnt_ns; in move_from_ns() 232 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mnt_ns, 247 if ((m->mnt_ns && m->mnt_ns->n_fsnotify_marks) || in mnt_notify_add() 251 m->prev_ns = m->mnt_ns; in mnt_notify_add()
|
| H A D | namespace.c | 172 struct mnt_namespace *mnt_ns; in lookup_mnt_ns() local 184 mnt_ns = container_of(ns, struct mnt_namespace, ns); in lookup_mnt_ns() 185 refcount_inc(&mnt_ns->passive); in lookup_mnt_ns() 186 return mnt_ns; in lookup_mnt_ns() 891 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() 1000 return mnt->mnt_ns == current->nsproxy->mnt_ns; in check_mnt() 1007 if (!is_anon_ns(mnt->mnt_ns)) in check_anonymous_mnt() 1010 seq = mnt->mnt_ns->seq_origin; in check_anonymous_mnt() 1011 return !seq || (seq == current->nsproxy->mnt_ns in check_anonymous_mnt() 2210 struct mnt_namespace *mnt_ns = mnt_ns_from_dentry(dentry); mnt_ns_loop() local 3148 struct mnt_namespace *ns, *mnt_ns = current->nsproxy->mnt_ns, *src_mnt_ns; get_detached_copy() local 6124 struct mnt_namespace *mnt_ns; grab_requested_mnt_ns() local 6717 struct mnt_namespace *mnt_ns = to_mnt_ns(ns), *old_mnt_ns; mntns_install() local [all...] |
| H A D | nsfs.c | 149 static int copy_ns_info_to_user(const struct mnt_namespace *mnt_ns, in copy_ns_info_to_user() argument 161 kinfo->mnt_ns_id = mnt_ns->ns.ns_id; in copy_ns_info_to_user() 162 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 220 struct mnt_namespace *mnt_ns; in ns_ioctl() local 340 mnt_ns = get_sequential_mnt_ns(to_mnt_ns(ns), previous); in ns_ioctl() 341 if (IS_ERR(mnt_ns)) in ns_ioctl() 342 return PTR_ERR(mnt_ns); in ns_ioctl() 344 ns = to_ns_common(mnt_ns); in ns_ioctl() 693 ns_ref_active_get(ns->mnt_ns); in nsproxy_ns_active_get() 705 ns_ref_active_put(ns->mnt_ns); in nsproxy_ns_active_put()
|
| H A D | fhandle.c | 290 struct mnt_namespace *mnt_ns; in capable_wrt_mount() local 297 mnt_ns = READ_ONCE(mount->mnt_ns); in capable_wrt_mount() 298 return mnt_ns && ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN); in capable_wrt_mount()
|
| H A D | pnode.c | 41 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root() 61 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 269 if (is_anon_ns(m->mnt_ns)) in need_secondary() 351 err = count_mounts(n->mnt_ns, this); in propagate_mnt()
|
| H A D | pnode.h | 15 #define IS_MNT_NEW(m) (!(m)->mnt_ns)
|
| H A D | pidfs.c | 604 if (!ns_ref_get(nsp->mnt_ns)) in pidfd_ioctl() 606 ns_common = to_ns_common(nsp->mnt_ns); in pidfd_ioctl()
|
| H A D | coredump.c | 1664 if (current->nsproxy->mnt_ns != init_task.nsproxy->mnt_ns) in check_coredump_socket()
|
| /linux/kernel/ |
| H A D | nsproxy.c | 40 .mnt_ns = NULL, 66 put_mnt_ns(ns->mnt_ns); in nsproxy_free() 99 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, in create_new_namespaces() 101 if (IS_ERR(new_nsp->mnt_ns)) { in create_new_namespaces() 102 err = PTR_ERR(new_nsp->mnt_ns); in create_new_namespaces() 159 put_mnt_ns(new_nsp->mnt_ns); in create_new_namespaces() 469 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset()
|
| H A D | fork.c | 1641 if (current->nsproxy->mnt_ns != &init_mnt_ns) in copy_fs()
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test_ns.c | 37 static int get_mnt_ns_id(const char *mnt_ns, uint64_t *mnt_ns_id) in wait_for_pid() 39 int fd = open(mnt_ns, O_RDONLY); in wait_for_pid() 43 mnt_ns, strerror(errno)); in wait_for_pid() 50 mnt_ns, strerror(errno)); in wait_for_pid() 62 get_mnt_ns_id(const char * mnt_ns,uint64_t * mnt_ns_id) get_mnt_ns_id() argument
|
| /linux/include/linux/ |
| H A D | nsfs.h | 33 struct mnt_namespace *: current->nsproxy->mnt_ns, \
|
| H A D | nsproxy.h | 36 struct mnt_namespace *mnt_ns; member
|
| /linux/fs/devpts/ |
| H A D | inode.c | 437 current->nsproxy->mnt_ns == init_task.nsproxy->mnt_ns) in devpts_init_fs_context()
|
| /linux/fs/autofs/ |
| H A D | inode.c | 258 sbi->mnt_ns_id = to_ns_common(current->nsproxy->mnt_ns)->ns_id; in autofs_alloc_sbi()
|
| H A D | dev-ioctl.c | 366 sbi->mnt_ns_id = to_ns_common(current->nsproxy->mnt_ns)->ns_id; in autofs_dev_ioctl_setpipefd()
|
| H A D | root.c | 348 if (sbi->mnt_ns_id != to_ns_common(current->nsproxy->mnt_ns)->ns_id) { in autofs_d_automount()
|