Home
last modified time | relevance | path

Searched refs:mnt_flags (Results 1 – 22 of 22) sorted by relevance

/linux-6.3-rc2/fs/
A Dpnode.h13 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED)
16 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED)
17 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE)
18 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED)
19 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED)
20 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED)
21 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
35 mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; in set_mnt_shared()
36 mnt->mnt.mnt_flags |= MNT_SHARED; in set_mnt_shared()
A Dnamespace.c1111 mnt->mnt.mnt_flags = old->mnt.mnt_flags; in clone_mnt()
2606 mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK; in set_mount_attributes()
2607 mnt->mnt.mnt_flags = mnt_flags; in set_mount_attributes()
2950 newmnt->mnt.mnt_flags = mnt_flags; in do_add_mount()
3330 mnt_flags |= MNT_NODEV; in path_mount()
3349 mnt_flags |= path->mnt->mnt_flags & MNT_ATIME_MASK; in path_mount()
3624 mnt_flags |= MNT_NODEV; in attr_flags_to_mnt_flags()
3632 return mnt_flags; in attr_flags_to_mnt_flags()
3713 newmount.mnt->mnt_flags = mnt_flags; in SYSCALL_DEFINE3()
4534 int mnt_flags; in mnt_already_visible() local
[all …]
A Dstatfs.c14 static int flags_by_mnt(int mnt_flags) in flags_by_mnt() argument
18 if (mnt_flags & MNT_READONLY) in flags_by_mnt()
20 if (mnt_flags & MNT_NOSUID) in flags_by_mnt()
22 if (mnt_flags & MNT_NODEV) in flags_by_mnt()
24 if (mnt_flags & MNT_NOEXEC) in flags_by_mnt()
26 if (mnt_flags & MNT_NOATIME) in flags_by_mnt()
28 if (mnt_flags & MNT_NODIRATIME) in flags_by_mnt()
30 if (mnt_flags & MNT_RELATIME) in flags_by_mnt()
32 if (mnt_flags & MNT_NOSYMFOLLOW) in flags_by_mnt()
51 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | in calculate_f_flags()
A Dpnode.c133 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; in change_mnt_propagation()
135 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; in change_mnt_propagation()
423 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock()
430 mnt->mnt.mnt_flags |= MNT_UMOUNT; in umount_one()
451 if (mnt->mnt.mnt_flags & (MNT_UMOUNT | MNT_MARKED)) in __propagate_umount()
510 while (parent->mnt.mnt_flags & MNT_UMOUNT) { in restore_mounts()
574 } else if (child->mnt.mnt_flags & MNT_UMOUNT) { in propagate_umount()
A Dproc_namespace.c79 if (mnt->mnt_flags & fs_infop->flag) in show_mnt_opts()
159 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
287 p->cursor.mnt.mnt_flags = MNT_CURSOR; in mounts_open_common()
A Dmount.h107 return m && likely(!(m->mnt.mnt_flags & MNT_SYNC_UMOUNT)); in __path_is_mountpoint()
A Dinode.c1814 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update()
1905 if (mnt->mnt_flags & MNT_NOATIME) in atime_needs_update()
1907 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in atime_needs_update()
A Dexec.c111 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec()
A Dnamei.c1771 unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW)) in pick_link()
3148 return !(path->mnt->mnt_flags & MNT_NODEV) && in may_open_dev()
/linux-6.3-rc2/tools/testing/selftests/mount/
A Dunprivileged-remount-test.c119 int mnt_flags; in read_mnt_flags() local
131 mnt_flags = 0; in read_mnt_flags()
133 mnt_flags |= MS_RDONLY; in read_mnt_flags()
135 mnt_flags |= MS_NOSUID; in read_mnt_flags()
137 mnt_flags |= MS_NODEV; in read_mnt_flags()
139 mnt_flags |= MS_NOEXEC; in read_mnt_flags()
141 mnt_flags |= MS_NOATIME; in read_mnt_flags()
143 mnt_flags |= MS_NODIRATIME; in read_mnt_flags()
145 mnt_flags |= MS_RELATIME; in read_mnt_flags()
149 mnt_flags |= ST_MANDLOCK; in read_mnt_flags()
[all …]
/linux-6.3-rc2/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c243 unsigned int mnt_flags; in read_mnt_flags() local
254 mnt_flags = 0; in read_mnt_flags()
256 mnt_flags |= MS_RDONLY; in read_mnt_flags()
258 mnt_flags |= MS_NOSUID; in read_mnt_flags()
260 mnt_flags |= MS_NODEV; in read_mnt_flags()
262 mnt_flags |= MS_NOEXEC; in read_mnt_flags()
264 mnt_flags |= MS_NOATIME; in read_mnt_flags()
266 mnt_flags |= MS_NODIRATIME; in read_mnt_flags()
268 mnt_flags |= MS_RELATIME; in read_mnt_flags()
272 mnt_flags |= ST_MANDLOCK; in read_mnt_flags()
[all …]
/linux-6.3-rc2/include/linux/
A Dmount.h73 int mnt_flags; member
/linux-6.3-rc2/security/apparmor/
A Dpath.c97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
/linux-6.3-rc2/mm/
A Dsecretmem.c289 secretmem_mnt->mnt_flags |= MNT_NOEXEC; in secretmem_init()
/linux-6.3-rc2/security/landlock/
A Dsyscalls.c262 (f.file->f_path.mnt->mnt_flags & MNT_INTERNAL) || in get_path_from_fd()
A Dfs.c626 !!(walker_path.mnt->mnt_flags & MNT_INTERNAL); in is_access_to_paths_allowed()
/linux-6.3-rc2/fs/ocfs2/
A Dfile.c230 if ((vfsmnt->mnt_flags & MNT_NOATIME) || in ocfs2_should_update_atime()
231 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime()
234 if (vfsmnt->mnt_flags & MNT_RELATIME) { in ocfs2_should_update_atime()
/linux-6.3-rc2/fs/overlayfs/
A Dsuper.c1148 upper_mnt->mnt_flags &= ~(MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME); in ovl_get_upper()
1674 mnt->mnt_flags |= MNT_READONLY | MNT_NOATIME; in ovl_get_layers()
/linux-6.3-rc2/fs/nfs/
A Dinode.c871 if ((path->mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr()
872 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
/linux-6.3-rc2/Documentation/filesystems/
A Dsharedsubtree.rst870 ->mnt_flags
939 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
A Dmount_api.rst393 unsigned int mnt_flags);
/linux-6.3-rc2/security/selinux/
A Dhooks.c581 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() local
593 if (mnt_flags & flag) in bad_option()

Completed in 63 milliseconds