| /linux/security/loadpin/ |
| H A D | loadpin.c | 81 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument 83 if (mnt_sb->s_bdev) { in report_writable() 84 pr_info("%pg (%u:%u): %s\n", mnt_sb->s_bdev, in report_writable() 85 MAJOR(mnt_sb->s_bdev->bd_dev), in report_writable() 86 MINOR(mnt_sb->s_bdev->bd_dev), in report_writable() 99 static bool sb_is_writable(struct super_block *mnt_sb) in sb_is_writable() argument 103 if (mnt_sb->s_bdev) in sb_is_writable() 104 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable() 109 static void loadpin_sb_free_security(struct super_block *mnt_sb) in loadpin_sb_free_security() argument 117 if (!IS_ERR_OR_NULL(pinned_root) && mnt_sb == pinned_root) { in loadpin_sb_free_security() [all …]
|
| /linux/fs/devpts/ |
| H A D | inode.c | 124 sb = path->mnt->mnt_sb; in devpts_ptmx_path() 166 if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) || in devpts_mntget() 167 (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) in devpts_mntget() 171 if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) in devpts_mntget() 191 if (path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) { in devpts_acquire() 204 sb = path.mnt->mnt_sb; in devpts_acquire()
|
| /linux/fs/ |
| H A D | namespace.c | 362 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly() 402 if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) in mnt_is_readonly() 494 sb_start_write(m->mnt_sb); in mnt_want_write() 497 sb_end_write(m->mnt_sb); in mnt_want_write() 573 sb_end_write(mnt->mnt_sb); in mnt_drop_write() 1102 if ((mnt->mnt.mnt_sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED) && in mnt_add_to_ns() 1103 mnt->mnt.mnt_root == mnt->mnt.mnt_sb->s_root) in mnt_add_to_ns() 1158 m->mnt.mnt_sb = s; in setup_mnt() 1317 deactivate_super(mnt->mnt.mnt_sb); in cleanup_mnt() 1872 struct super_block *sb = mnt->mnt.mnt_sb; in do_umount() [all …]
|
| H A D | fhandle.c | 333 if (ns_capable(root->mnt->mnt_sb->s_user_ns, CAP_SYS_ADMIN)) in may_decode_fh() 374 eops = ctx.root.mnt->mnt_sb->s_export_op; in handle_to_path() 420 eops = path->mnt->mnt_sb->s_export_op; in file_open_handle()
|
| H A D | fs_pin.c | 25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert()
|
| H A D | exec.c | 121 !(path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC)); in path_noexec() 123 (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); in path_noexec()
|
| H A D | pipe.c | 969 struct inode *inode = new_inode_pseudo(pipe_mnt->mnt_sb); in get_pipe_inode()
|
| H A D | namei.c | 817 struct super_block *sb = mnt->mnt_sb; in path_connected() 4228 !(path->mnt->mnt_sb->s_iflags & SB_I_NODEV); in may_open_dev()
|
| /linux/fs/cachefiles/ |
| H A D | cache.c | 395 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache() 396 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache() 397 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
|
| /linux/include/linux/ |
| H A D | mount.h | 60 struct super_block *mnt_sb; /* pointer to superblock */ member
|
| /linux/fs/nfs/ |
| H A D | nfs4file.c | 319 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open() 342 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1819 if (!(path->mnt->mnt_sb->s_iflags & SB_I_ALLOW_HSM)) in fanotify_events_supported() 1834 path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM) in fanotify_events_supported() 1848 path->mnt->mnt_sb->s_flags & SB_NOUSER) in fanotify_events_supported() 2066 user_ns = path.mnt->mnt_sb->s_user_ns; in do_fanotify_mark() 2069 user_ns = path.mnt->mnt_sb->s_user_ns; in do_fanotify_mark() 2070 obj = path.mnt->mnt_sb; in do_fanotify_mark()
|
| /linux/security/ipe/ |
| H A D | hooks.c | 222 ipe_sb(current->fs->root.mnt->mnt_sb)->initramfs = true; in ipe_unpack_initramfs()
|
| H A D | eval.c | 26 #define FILE_SUPERBLOCK(f) ((f)->f_path.mnt->mnt_sb)
|
| /linux/fs/nfsd/ |
| H A D | nfs4layouts.c | 130 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 652 argv[2] = file->nf_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail() 828 bdev = nf->nf_file->f_path.mnt->mnt_sb->s_bdev; in nfsd4_layout_fence_worker()
|
| /linux/fs/overlayfs/ |
| H A D | util.c | 32 sb_start_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_start_write() 50 sb_end_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_end_write() 1481 return errseq_check(&mnt->mnt_sb->s_wb_err, ofs->errseq); in ovl_sync_status()
|
| H A D | params.c | 771 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_reconfigure()
|
| /linux/drivers/dax/ |
| H A D | super.c | 703 dax_superblock = dax_mnt->mnt_sb; in dax_fs_init()
|
| /linux/virt/kvm/ |
| H A D | guest_memfd.c | 547 inode = anon_inode_make_secure_inode(kvm_gmem_mnt->mnt_sb, name, NULL); in kvm_gmem_setattr()
|
| /linux/security/ |
| H A D | commoncap.c | 782 if (!current_in_userns(file->f_path.mnt->mnt_sb->s_user_ns)) in get_file_caps()
|
| /linux/fs/btrfs/ |
| H A D | super.c | 1172 ret = get_default_subvol_objectid(btrfs_sb(mnt->mnt_sb), in mount_subvol() 1180 btrfs_sb(mnt->mnt_sb), subvol_objectid); in mount_subvol()
|
| /linux/block/ |
| H A D | bdev.c | 498 blockdev_superblock = blockdev_mnt->mnt_sb; /* For writeback */ in bdev_cache_init()
|
| /linux/drivers/vfio/ |
| H A D | vfio_main.c | 272 inode = alloc_anon_inode(vfio.vfs_mount->mnt_sb); in vfio_fs_inode_new()
|
| /linux/security/apparmor/ |
| H A D | apparmorfs.c | 2920 aafs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in aa_create_aafs()
|
| /linux/fs/smb/server/ |
| H A D | smb2pdu.c | 7488 if (path.mnt->mnt_sb->s_uuid_len == 16) in smb2_get_info_filesystem() 7489 memcpy(info->objid, path.mnt->mnt_sb->s_uuid.b, in smb2_get_info_filesystem() 7490 path.mnt->mnt_sb->s_uuid_len); in smb2_get_info_filesystem() 7507 min_t(unsigned int, path.mnt->mnt_sb->s_blocksize, 4096); in smb2_get_info_filesystem()
|