Home
last modified time | relevance | path

Searched refs:mntns (Results 1 – 3 of 3) sorted by relevance

/linux/samples/vfs/
H A Dmountinfo.c214 int pidfd, mntns, ret, opt; in main() local
243 mntns = ioctl(pidfd, PIDFD_GET_MNT_NAMESPACE, NULL); in main()
244 if (mntns < 0) { in main()
251 ret = ioctl(mntns, NS_MNT_GET_INFO, &mni); in main()
268 ret = ioctl(mntns, NS_MNT_GET_NEXT, &mni); in main()
269 close(mntns); in main()
270 mntns = ret; in main()
271 } while (mntns >= 0); in main()
/linux/fs/notify/fanotify/
H A Dfanotify_user.c1871 struct mnt_namespace *mntns; in do_fanotify_mark() local
2073 mntns = mnt_ns_from_dentry(path.dentry); in do_fanotify_mark()
2074 if (!mntns) in do_fanotify_mark()
2076 user_ns = mntns->user_ns; in do_fanotify_mark()
2077 obj = mntns; in do_fanotify_mark()
/linux/fs/
H A Dnamespace.c2166 struct mnt_namespace *get_sequential_mnt_ns(struct mnt_namespace *mntns, bool previous) in copy_tree()
2173 ns = ns_tree_adjoined_rcu(mntns, previous); in copy_tree()
2177 mntns = to_mnt_ns(ns); in copy_tree()
2184 if (!ns_capable_noaudit(mntns->user_ns, CAP_SYS_ADMIN)) in copy_tree()
2192 if (!ns_ref_get(mntns)) in copy_tree()
2195 return mntns; in copy_tree()
4475 // an mntns binding we'd skipped? in SYSCALL_DEFINE3()
2108 get_sequential_mnt_ns(struct mnt_namespace * mntns,bool previous) get_sequential_mnt_ns() argument