| /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 | fhandle.c | 320 if (ns_capable(root->mnt->mnt_sb->s_user_ns, CAP_SYS_ADMIN)) in may_decode_fh() 362 eops = ctx.root.mnt->mnt_sb->s_export_op; in handle_to_path() 408 eops = path->mnt->mnt_sb->s_export_op; in file_open_handle()
|
| H A D | namespace.c | 361 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly() 401 if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) in mnt_is_readonly() 493 sb_start_write(m->mnt_sb); in mnt_want_write() 496 sb_end_write(m->mnt_sb); in mnt_want_write() 572 sb_end_write(mnt->mnt_sb); in mnt_drop_write() 1153 m->mnt.mnt_sb = s; in setup_mnt() 1312 deactivate_super(mnt->mnt.mnt_sb); in cleanup_mnt() 1867 struct super_block *sb = mnt->mnt.mnt_sb; in do_umount() 2833 if (mnt->mnt.mnt_sb->s_flags & SB_NOUSER) in graft_tree() 3117 VFS_WARN_ON_ONCE(old_ns_root->mnt.mnt_sb->s_type != &nullfs_fs_type); in create_new_namespace() [all …]
|
| H A D | fs_pin.c | 25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert()
|
| H A D | nsfs.c | 400 return (ns->inum == ino) && (nsfs_mnt->mnt_sb->s_dev == dev); in ns_match() 687 nsfs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in nsfs_init()
|
| /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/fs/erofs/ |
| H A D | ishare.c | 55 sharedinode = iget5_locked(erofs_ishare_mnt->mnt_sb, hash, in erofs_ishare_fill_inode() 218 ret = super_setup_bdi(mnt->mnt_sb); in erofs_init_ishare()
|
| H A D | fscache.c | 504 isb = flags & EROFS_REG_COOKIE_SHARE ? erofs_pseudo_mnt->mnt_sb : sb; in erofs_fscache_acquire_cookie()
|
| /linux/fs/overlayfs/ |
| H A D | super.c | 259 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_sync_fs() 421 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir() 545 if (upper_mnt->mnt_sb->s_flags & SB_NOSEC) in ovl_get_upper() 950 struct super_block *sb = path->mnt->mnt_sb; in ovl_get_fsid() 1053 ofs->fs[0].sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_get_layers() 1128 if (!sb_same_encoding(sb, mnt->mnt_sb)) { in ovl_get_layers() 1439 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_fill_super_creds()
|
| 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()
|
| H A D | overlayfs.h | 287 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb); in ovl_do_getxattr()
|
| /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 | 317 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open() 340 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
|
| H A D | namespace.c | 162 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); in nfs_d_automount()
|
| /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/smb/client/ |
| H A D | namespace.c | 225 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, mntpt); in cifs_do_automount()
|
| /linux/virt/kvm/ |
| H A D | guest_memfd.c | 583 inode = anon_inode_make_secure_inode(kvm_gmem_mnt->mnt_sb, name, NULL); in __kvm_gmem_create()
|
| /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/drivers/dma-buf/ |
| H A D | dma-buf.c | 630 struct inode *inode = alloc_anon_inode(dma_buf_mnt->mnt_sb); in dma_buf_getfile()
|
| /linux/ipc/ |
| H A D | mqueue.c | 1640 ns->mq_mnt->mnt_sb->s_fs_info = NULL; in mq_clear_sbinfo()
|
| /linux/fs/smb/server/ |
| H A D | smb2pdu.c | 5645 if (path.mnt->mnt_sb->s_uuid_len == 16) in smb2_get_info_filesystem() 5646 memcpy(info->objid, path.mnt->mnt_sb->s_uuid.b, in smb2_get_info_filesystem() 5647 path.mnt->mnt_sb->s_uuid_len); in smb2_get_info_filesystem() 5663 min_t(unsigned int, path.mnt->mnt_sb->s_blocksize, 4096); in smb2_get_info_filesystem()
|
| /linux/security/apparmor/ |
| H A D | apparmorfs.c | 2712 aafs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in aa_create_aafs()
|