| /linux/tools/testing/selftests/mount/ |
| H A D | unprivileged-remount-test.c | 119 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() 147 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags() [all …]
|
| /linux/fs/ |
| H A D | namespace.c | 399 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly() 727 mnt->mnt.mnt_flags |= MNT_READONLY; in mnt_make_readonly() 743 if (!(m->mnt.mnt_flags & MNT_READONLY)) { in sb_prepare_remount_readonly() 793 if (unlikely(bastard->mnt_flags & (MNT_SYNC_UMOUNT | MNT_DOOMED))) { in __legitimize_mnt() 843 if (unlikely(data_race(mnt->mnt_flags) & MNT_UMOUNT)) { in __lookup_mnt() 1272 mnt->mnt.mnt_flags = MNT_INTERNAL; in vfs_create_mount() 1339 mnt->mnt.mnt_flags = READ_ONCE(old->mnt.mnt_flags) & in clone_mnt() 1434 if (unlikely(mnt->mnt.mnt_flags & MNT_DOOMED)) { in mntput_no_expire_slowpath() 1439 mnt->mnt.mnt_flags | in mntput_no_expire_slowpath() 3387 can_change_locked_flags(struct mount * mnt,unsigned int mnt_flags) can_change_locked_flags() argument 3414 change_mount_ro_state(struct mount * mnt,unsigned int mnt_flags) change_mount_ro_state() argument 3428 set_mount_attributes(struct mount * mnt,unsigned int mnt_flags) set_mount_attributes() argument 3469 do_reconfigure_mnt(const struct path * path,unsigned int mnt_flags) do_reconfigure_mnt() argument 3507 do_remount(const struct path * path,int sb_flags,int mnt_flags,void * data) do_remount() argument 3870 do_add_mount(struct mount * newmnt,const struct pinned_mountpoint * mp,int mnt_flags) do_add_mount() argument 3907 do_new_mount_fc(struct fs_context * fc,const struct path * mountpoint,unsigned int mnt_flags) do_new_mount_fc() argument 3940 do_new_mount(const struct path * path,const char * fstype,int sb_flags,int mnt_flags,const char * name,void * data) do_new_mount() argument 4265 unsigned int mnt_flags = 0, sb_flags; path_mount() local 4589 unsigned int mnt_flags = 0; attr_flags_to_mnt_flags() local 4619 unsigned int mnt_flags = 0; SYSCALL_DEFINE3() local 5436 unsigned int mnt_flags = READ_ONCE(mnt->mnt_flags); mnt_to_attr_flags() local 6598 int mnt_flags; mnt_already_visible() local [all...] |
| H A D | pnode.h | 21 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
|
| H A D | pnode.c | 71 return m->mnt.mnt_flags & MNT_UMOUNT; in will_be_unmounted() 549 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock() 560 m->mnt.mnt_flags |= MNT_UMOUNT; in umount_one()
|
| H A D | mount.h | 154 return m && likely(!(m->mnt.mnt_flags & MNT_SYNC_UMOUNT)); in __path_is_mountpoint()
|
| H A D | inode.c | 2138 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update() 2307 if (mnt->mnt_flags & MNT_NOATIME) in touch_atime() 2309 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in touch_atime()
|
| H A D | exec.c | 122 return (path->mnt->mnt_flags & MNT_NOEXEC) || in path_noexec()
|
| H A D | namei.c | 2047 unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW)) in pick_link() 4233 return !(path->mnt->mnt_flags & MNT_NODEV) && in may_open()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 234 unsigned int mnt_flags; in read_mnt_flags() local 245 mnt_flags = 0; in read_mnt_flags() 247 mnt_flags |= MS_RDONLY; in read_mnt_flags() 249 mnt_flags |= MS_NOSUID; in read_mnt_flags() 251 mnt_flags |= MS_NODEV; in read_mnt_flags() 253 mnt_flags |= MS_NOEXEC; in read_mnt_flags() 255 mnt_flags |= MS_NOATIME; in read_mnt_flags() 257 mnt_flags |= MS_NODIRATIME; in read_mnt_flags() 259 mnt_flags |= MS_RELATIME; in read_mnt_flags() 261 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags() [all …]
|
| /linux/include/linux/ |
| H A D | mount.h | 61 int mnt_flags; member
|
| /linux/security/apparmor/ |
| H A D | path.c | 97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
|
| /linux/security/landlock/ |
| H A D | syscalls.c | 371 (fd_file(f)->f_path.mnt->mnt_flags & MNT_INTERNAL) || in add_rule_path_beneath()
|
| H A D | fs.c | 976 if (likely(walker_path.mnt->mnt_flags & MNT_INTERNAL)) { in is_access_to_paths_allowed()
|
| /linux/fs/overlayfs/ |
| H A D | super.c | 566 upper_mnt->mnt_flags &= ~(MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME); in ovl_get_upper() 1173 mnt->mnt_flags |= MNT_READONLY | MNT_NOATIME; in ovl_get_layers()
|
| /linux/fs/ocfs2/ |
| H A D | file.c | 252 if ((vfsmnt->mnt_flags & MNT_NOATIME) || in ocfs2_should_update_atime() 253 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) 256 if (vfsmnt->mnt_flags & MNT_RELATIME) { in ocfs2_update_inode_atime()
|
| /linux/virt/kvm/ |
| H A D | guest_memfd.c | 1413 kvm_gmem_mnt->mnt_flags |= MNT_NOEXEC;
|
| /linux/Documentation/filesystems/ |
| H A D | sharedsubtree.rst | 875 ->mnt_flags 948 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
|
| /linux/fs/nfs/ |
| H A D | inode.c | 1045 if ((path->mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr() 1046 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
|
| /linux/security/selinux/ |
| H A D | hooks.c | 622 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() 634 if (mnt_flags & flag) in bad_option() 620 char mnt_flags = sbsec->flags & SE_MNTMASK; bad_option() local
|