/linux-4.1.27/fs/ |
H A 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; set_mnt_shared() 38 mnt->mnt.mnt_flags |= MNT_SHARED; set_mnt_shared()
|
H A D | statfs.c | 12 static int flags_by_mnt(int mnt_flags) flags_by_mnt() argument 16 if (mnt_flags & MNT_READONLY) flags_by_mnt() 18 if (mnt_flags & MNT_NOSUID) flags_by_mnt() 20 if (mnt_flags & MNT_NODEV) flags_by_mnt() 22 if (mnt_flags & MNT_NOEXEC) flags_by_mnt() 24 if (mnt_flags & MNT_NOATIME) flags_by_mnt() 26 if (mnt_flags & MNT_NODIRATIME) flags_by_mnt() 28 if (mnt_flags & MNT_RELATIME) flags_by_mnt() 45 return ST_VALID | flags_by_mnt(mnt->mnt_flags) | calculate_f_flags()
|
H A D | namespace.c | 276 if (mnt->mnt_flags & MNT_READONLY) __mnt_is_readonly() 356 while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) __mnt_want_write() 498 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; mnt_make_readonly() 524 mnt->mnt.mnt_flags |= MNT_READONLY; mnt_make_readonly() 530 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; mnt_make_readonly() 538 mnt->mnt.mnt_flags &= ~MNT_READONLY; __mnt_unmake_readonly() 553 if (!(mnt->mnt.mnt_flags & MNT_READONLY)) { sb_prepare_remount_readonly() 554 mnt->mnt.mnt_flags |= MNT_WRITE_HOLD; sb_prepare_remount_readonly() 570 if (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) sb_prepare_remount_readonly() 571 mnt->mnt.mnt_flags &= ~MNT_WRITE_HOLD; sb_prepare_remount_readonly() 604 if (bastard->mnt_flags & MNT_SYNC_UMOUNT) { legitimize_mnt() 639 if (!(p->mnt.mnt_flags & MNT_UMOUNT)) __lookup_mnt_last() 644 if (!(p->mnt.mnt_flags & MNT_UMOUNT)) hlist_for_each_entry_continue() 935 mnt->mnt.mnt_flags = MNT_INTERNAL; vfs_kern_mount() 977 mnt->mnt.mnt_flags = old->mnt.mnt_flags & ~(MNT_WRITE_HOLD|MNT_MARKED); clone_mnt() 980 mnt->mnt.mnt_flags |= MNT_LOCK_ATIME; clone_mnt() 982 if (mnt->mnt.mnt_flags & MNT_READONLY) clone_mnt() 983 mnt->mnt.mnt_flags |= MNT_LOCK_READONLY; clone_mnt() 985 if (mnt->mnt.mnt_flags & MNT_NODEV) clone_mnt() 986 mnt->mnt.mnt_flags |= MNT_LOCK_NODEV; clone_mnt() 988 if (mnt->mnt.mnt_flags & MNT_NOSUID) clone_mnt() 989 mnt->mnt.mnt_flags |= MNT_LOCK_NOSUID; clone_mnt() 991 if (mnt->mnt.mnt_flags & MNT_NOEXEC) clone_mnt() 992 mnt->mnt.mnt_flags |= MNT_LOCK_NOEXEC; clone_mnt() 998 mnt->mnt.mnt_flags |= MNT_LOCKED; clone_mnt() 1093 if (unlikely(mnt->mnt.mnt_flags & MNT_DOOMED)) { mntput_no_expire() 1098 mnt->mnt.mnt_flags |= MNT_DOOMED; mntput_no_expire() 1111 if (likely(!(mnt->mnt.mnt_flags & MNT_INTERNAL))) { mntput_no_expire() 1151 p->mnt.mnt_flags |= MNT_INTERNAL; mnt_clone_internal() 1368 if (!(mnt->mnt_parent->mnt.mnt_flags & MNT_UMOUNT)) disconnect_mount() 1397 p->mnt.mnt_flags |= MNT_UMOUNT; umount_tree() 1418 p->mnt.mnt_flags |= MNT_SYNC_UMOUNT; umount_tree() 1556 if (mnt->mnt.mnt_flags & MNT_UMOUNT) { __detach_mounts() 1609 if (mnt->mnt.mnt_flags & MNT_LOCKED) SYSCALL_DEFINE2() 2050 if (child->mnt.mnt_flags & MNT_LOCKED) has_locked_children() 2107 mnt->mnt.mnt_flags &= ~MNT_LOCKED; do_loopback() 2144 static int do_remount(struct path *path, int flags, int mnt_flags, do_remount() argument 2163 if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && do_remount() 2164 !(mnt_flags & MNT_READONLY)) { do_remount() 2167 if ((mnt->mnt.mnt_flags & MNT_LOCK_NODEV) && do_remount() 2168 !(mnt_flags & MNT_NODEV)) { do_remount() 2172 mnt_flags |= MNT_NODEV; do_remount() 2177 if ((mnt->mnt.mnt_flags & MNT_LOCK_NOSUID) && do_remount() 2178 !(mnt_flags & MNT_NOSUID)) { do_remount() 2181 if ((mnt->mnt.mnt_flags & MNT_LOCK_NOEXEC) && do_remount() 2182 !(mnt_flags & MNT_NOEXEC)) { do_remount() 2185 if ((mnt->mnt.mnt_flags & MNT_LOCK_ATIME) && do_remount() 2186 ((mnt->mnt.mnt_flags & MNT_ATIME_MASK) != (mnt_flags & MNT_ATIME_MASK))) { do_remount() 2203 mnt_flags |= mnt->mnt.mnt_flags & ~MNT_USER_SETTABLE_MASK; do_remount() 2204 mnt->mnt.mnt_flags = mnt_flags; do_remount() 2247 if (old->mnt.mnt_flags & MNT_LOCKED) do_move_mount() 2318 static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags) do_add_mount() argument 2324 mnt_flags &= ~MNT_INTERNAL_FLAGS; do_add_mount() 2334 if (!(mnt_flags & MNT_SHRINKABLE)) do_add_mount() 2351 newmnt->mnt.mnt_flags = mnt_flags; do_add_mount() 2366 int mnt_flags, const char *name, void *data) do_new_mount() 2390 mnt_flags |= MNT_NODEV | MNT_LOCK_NODEV; do_new_mount() 2393 if (!fs_fully_visible(type, &mnt_flags)) { do_new_mount() 2409 err = do_add_mount(real_mount(mnt), path, mnt_flags); do_new_mount() 2430 err = do_add_mount(mnt, path, path->mnt->mnt_flags | MNT_SHRINKABLE); finish_automount() 2519 if (!(mnt->mnt.mnt_flags & MNT_SHRINKABLE)) select_submounts() 2652 int mnt_flags = 0; do_mount() local 2676 mnt_flags |= MNT_RELATIME; do_mount() 2680 mnt_flags |= MNT_NOSUID; do_mount() 2682 mnt_flags |= MNT_NODEV; do_mount() 2684 mnt_flags |= MNT_NOEXEC; do_mount() 2686 mnt_flags |= MNT_NOATIME; do_mount() 2688 mnt_flags |= MNT_NODIRATIME; do_mount() 2690 mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME); do_mount() 2692 mnt_flags |= MNT_READONLY; do_mount() 2698 mnt_flags &= ~MNT_ATIME_MASK; do_mount() 2699 mnt_flags |= path.mnt->mnt_flags & MNT_ATIME_MASK; do_mount() 2707 retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags, do_mount() 2716 retval = do_new_mount(&path, type_page, flags, mnt_flags, do_mount() 3007 if (new_mnt->mnt.mnt_flags & MNT_LOCKED) SYSCALL_DEFINE2() 3035 if (root_mnt->mnt.mnt_flags & MNT_LOCKED) { SYSCALL_DEFINE2() 3036 new_mnt->mnt.mnt_flags |= MNT_LOCKED; SYSCALL_DEFINE2() 3037 root_mnt->mnt.mnt_flags &= ~MNT_LOCKED; SYSCALL_DEFINE2() 3090 mnt->mnt_flags |= MNT_LOCKED; init_mount_tree() 3224 if ((mnt->mnt.mnt_flags & MNT_LOCK_READONLY) && fs_fully_visible() 3227 if ((mnt->mnt.mnt_flags & MNT_LOCK_NODEV) && fs_fully_visible() 3230 if ((mnt->mnt.mnt_flags & MNT_LOCK_ATIME) && fs_fully_visible() 3231 ((mnt->mnt.mnt_flags & MNT_ATIME_MASK) != (new_flags & MNT_ATIME_MASK))) fs_fully_visible() 3241 if (!(child->mnt.mnt_flags & MNT_LOCKED)) fs_fully_visible() 3248 *new_mnt_flags |= mnt->mnt.mnt_flags & (MNT_LOCK_READONLY | \ fs_fully_visible() 2365 do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) do_new_mount() argument
|
H A D | pnode.c | 130 mnt->mnt.mnt_flags |= MNT_UNBINDABLE; change_mnt_propagation() 132 mnt->mnt.mnt_flags &= ~MNT_UNBINDABLE; change_mnt_propagation() 252 child->mnt.mnt_flags &= ~MNT_LOCKED; propagate_one() 388 child->mnt.mnt_flags &= ~MNT_LOCKED; propagate_mount_unlock() 437 child->mnt.mnt_flags |= MNT_UMOUNT; __propagate_umount()
|
H A D | proc_namespace.c | 74 if (mnt->mnt_flags & fs_infop->flag) show_mnt_opts() 150 seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); show_mountinfo()
|
H A D | exec.c | 135 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) SYSCALL_DEFINE1() 780 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) do_open_execat() 1292 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) bprm_fill_uid()
|
H A D | inode.c | 1520 if (!(mnt->mnt_flags & MNT_RELATIME)) relatime_need_update() 1600 if (mnt->mnt_flags & MNT_NOATIME) touch_atime() 1602 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) touch_atime()
|
H A D | open.c | 378 if (path.mnt->mnt_flags & MNT_NOEXEC) SYSCALL_DEFINE3()
|
H A D | block_dev.c | 1732 if (path.mnt->mnt_flags & MNT_NODEV) lookup_bdev()
|
H A D | namei.c | 2626 if (path->mnt->mnt_flags & MNT_NODEV) may_open()
|
/linux-4.1.27/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 118 int mnt_flags; read_mnt_flags() local 130 mnt_flags = 0; read_mnt_flags() 132 mnt_flags |= MS_RDONLY; read_mnt_flags() 134 mnt_flags |= MS_NOSUID; read_mnt_flags() 136 mnt_flags |= MS_NODEV; read_mnt_flags() 138 mnt_flags |= MS_NOEXEC; read_mnt_flags() 140 mnt_flags |= MS_NOATIME; read_mnt_flags() 142 mnt_flags |= MS_NODIRATIME; read_mnt_flags() 144 mnt_flags |= MS_RELATIME; read_mnt_flags() 146 mnt_flags |= MS_SYNCHRONOUS; read_mnt_flags() 148 mnt_flags |= ST_MANDLOCK; read_mnt_flags() 150 return mnt_flags; read_mnt_flags()
|
/linux-4.1.27/include/linux/ |
H A D | mount.h | 69 int mnt_flags; member in struct:vfsmount
|
/linux-4.1.27/security/apparmor/ |
H A D | path.c | 63 if (path->mnt->mnt_flags & MNT_INTERNAL) { d_namespace_path()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | file.c | 240 if ((vfsmnt->mnt_flags & MNT_NOATIME) || ocfs2_should_update_atime() 241 ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) ocfs2_should_update_atime() 244 if (vfsmnt->mnt_flags & MNT_RELATIME) { ocfs2_should_update_atime()
|
/linux-4.1.27/fs/overlayfs/ |
H A D | super.c | 957 mnt->mnt_flags |= MNT_READONLY; ovl_fill_super()
|
/linux-4.1.27/fs/nfs/ |
H A D | inode.c | 667 if ((mnt->mnt_flags & MNT_NOATIME) || nfs_getattr() 668 ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) nfs_getattr()
|
/linux-4.1.27/security/ |
H A D | commoncap.c | 450 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) get_file_caps()
|
H A D | security.c | 754 if (!(file->f_path.mnt->mnt_flags & MNT_NOEXEC)) { mmap_prot()
|
/linux-4.1.27/security/selinux/ |
H A D | hooks.c | 582 char mnt_flags = sbsec->flags & SE_MNTMASK; bad_option() local 594 if (mnt_flags & flag) bad_option() 2158 int nosuid = (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID); check_nnp_nosuid()
|
/linux-4.1.27/kernel/ |
H A D | sys.c | 1672 exe.file->f_path.mnt->mnt_flags & MNT_NOEXEC) prctl_set_mm_exe_file()
|
/linux-4.1.27/mm/ |
H A D | nommu.c | 1072 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) { validate_mmap_request()
|
H A D | mmap.c | 1272 if (!(file && (file->f_path.mnt->mnt_flags & MNT_NOEXEC))) do_mmap_pgoff() 1344 if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) { do_mmap_pgoff()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | file.c | 1068 if (mnt->mnt_flags & (MNT_NOATIME | MNT_READONLY)) file_is_noatime() 1071 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) file_is_noatime()
|