/linux-4.1.27/fs/ |
D | pnode.h | 14 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) 17 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) 18 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) 19 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) 20 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) 21 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) 22 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED) 37 mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK; in set_mnt_shared() 38 mnt->mnt.mnt_flags |= MNT_SHARED; in set_mnt_shared()
|
D | namespace.c | 276 if (mnt->mnt_flags & MNT_READONLY) in __mnt_is_readonly() 356 while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) in __mnt_want_write() 498 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in mnt_make_readonly() 524 mnt->mnt.mnt_flags |= MNT_READONLY; in mnt_make_readonly() 530 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in mnt_make_readonly() 538 mnt->mnt.mnt_flags &= ~MNT_READONLY; in __mnt_unmake_readonly() 553 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) { in sb_prepare_remount_readonly() 554 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; in sb_prepare_remount_readonly() 570 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) in sb_prepare_remount_readonly() 571 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; in sb_prepare_remount_readonly() [all …]
|
D | statfs.c | 12 static int flags_by_mnt(int mnt_flags) in flags_by_mnt() argument 16 if (mnt_flags & MNT_READONLY) in flags_by_mnt() 18 if (mnt_flags & MNT_NOSUID) in flags_by_mnt() 20 if (mnt_flags & MNT_NODEV) in flags_by_mnt() 22 if (mnt_flags & MNT_NOEXEC) in flags_by_mnt() 24 if (mnt_flags & MNT_NOATIME) in flags_by_mnt() 26 if (mnt_flags & MNT_NODIRATIME) in flags_by_mnt() 28 if (mnt_flags & MNT_RELATIME) in flags_by_mnt() 45 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | in calculate_f_flags()
|
D | pnode.c | 130 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; in change_mnt_propagation() 132 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; in change_mnt_propagation() 252 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_one() 388 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock() 437 child->mnt.mnt_flags |= MNT_UMOUNT; in __propagate_umount()
|
D | proc_namespace.c | 74 if (mnt->mnt_flags & fs_infop->flag) in show_mnt_opts() 150 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); in show_mountinfo()
|
D | exec.c | 135 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) in SYSCALL_DEFINE1() 780 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) in do_open_execat() 1292 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in bprm_fill_uid()
|
D | inode.c | 1520 if (!(mnt->mnt_flags & MNT_RELATIME)) in relatime_need_update() 1600 if (mnt->mnt_flags & MNT_NOATIME) in touch_atime() 1602 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in touch_atime()
|
D | open.c | 378 if (path.mnt->mnt_flags & MNT_NOEXEC) in SYSCALL_DEFINE3()
|
D | block_dev.c | 1732 if (path.mnt->mnt_flags & MNT_NODEV) in lookup_bdev()
|
D | namei.c | 2626 if (path->mnt->mnt_flags & MNT_NODEV) in may_open()
|
/linux-4.1.27/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 118 int mnt_flags; in read_mnt_flags() local 130 mnt_flags = 0; in read_mnt_flags() 132 mnt_flags |= MS_RDONLY; in read_mnt_flags() 134 mnt_flags |= MS_NOSUID; in read_mnt_flags() 136 mnt_flags |= MS_NODEV; in read_mnt_flags() 138 mnt_flags |= MS_NOEXEC; in read_mnt_flags() 140 mnt_flags |= MS_NOATIME; in read_mnt_flags() 142 mnt_flags |= MS_NODIRATIME; in read_mnt_flags() 144 mnt_flags |= MS_RELATIME; in read_mnt_flags() 146 mnt_flags |= MS_SYNCHRONOUS; in read_mnt_flags() [all …]
|
/linux-4.1.27/include/linux/ |
D | mount.h | 69 int mnt_flags; member
|
/linux-4.1.27/security/apparmor/ |
D | path.c | 63 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
|
/linux-4.1.27/security/ |
D | commoncap.c | 450 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) in get_file_caps()
|
D | security.c | 754 if (!(file->f_path.mnt->mnt_flags & MNT_NOEXEC)) { in mmap_prot()
|
/linux-4.1.27/fs/ocfs2/ |
D | file.c | 240 if ((vfsmnt->mnt_flags & MNT_NOATIME) || in ocfs2_should_update_atime() 241 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in ocfs2_should_update_atime() 244 if (vfsmnt->mnt_flags & MNT_RELATIME) { in ocfs2_should_update_atime()
|
/linux-4.1.27/fs/nfs/ |
D | inode.c | 667 if ((mnt->mnt_flags & MNT_NOATIME) || in nfs_getattr() 668 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) in nfs_getattr()
|
/linux-4.1.27/fs/overlayfs/ |
D | super.c | 957 mnt->mnt_flags |= MNT_READONLY; in ovl_fill_super()
|
/linux-4.1.27/Documentation/filesystems/ |
D | sharedsubtree.txt | 822 ->mnt_flags takes two more flags to indicate the propagation status of 885 Normally we have ->mnt_flags modifications serialized by vfsmount_lock.
|
/linux-4.1.27/mm/ |
D | mmap.c | 1272 if (!(file && (file->f_path.mnt->mnt_flags & MNT_NOEXEC))) in do_mmap_pgoff() 1344 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) { in do_mmap_pgoff()
|
D | nommu.c | 1072 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) { in validate_mmap_request()
|
/linux-4.1.27/security/selinux/ |
D | hooks.c | 582 char mnt_flags = sbsec->flags & SE_MNTMASK; in bad_option() local 594 if (mnt_flags & flag) in bad_option() 2158 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); in check_nnp_nosuid()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | file.c | 1068 if (mnt->mnt_flags & (MNT_NOATIME | MNT_READONLY)) in file_is_noatime() 1071 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) in file_is_noatime()
|
/linux-4.1.27/kernel/ |
D | sys.c | 1672 exe.file->f_path.mnt->mnt_flags & MNT_NOEXEC) in prctl_set_mm_exe_file()
|