/security/tomoyo/ |
D | realpath.c | 155 struct super_block *sb = dentry->d_sb; in tomoyo_get_local_path() local 161 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { in tomoyo_get_local_path() 166 task_tgid_nr_ns(current, sb->s_fs_info)) { in tomoyo_get_local_path() 175 if (!MAJOR(sb->s_dev)) in tomoyo_get_local_path() 178 struct inode *inode = d_backing_inode(sb->s_root); in tomoyo_get_local_path() 191 const dev_t dev = sb->s_dev; in tomoyo_get_local_path() 206 const char *name = sb->s_type->name; in tomoyo_get_local_path() 241 struct super_block *sb; in tomoyo_realpath_from_path() local 245 sb = dentry->d_sb; in tomoyo_realpath_from_path() 262 inode = d_backing_inode(sb->s_root); in tomoyo_realpath_from_path() [all …]
|
/security/selinux/ |
D | selinuxfs.c | 80 struct super_block *sb; member 83 static int selinux_fs_info_create(struct super_block *sb) in selinux_fs_info_create() argument 94 fsi->sb = sb; in selinux_fs_info_create() 95 sb->s_fs_info = fsi; in selinux_fs_info_create() 99 static void selinux_fs_info_free(struct super_block *sb) in selinux_fs_info_free() argument 101 struct selinux_fs_info *fsi = sb->s_fs_info; in selinux_fs_info_free() 110 kfree(sb->s_fs_info); in selinux_fs_info_free() 111 sb->s_fs_info = NULL; in selinux_fs_info_free() 1157 static struct inode *sel_make_inode(struct super_block *sb, int mode) in sel_make_inode() argument 1159 struct inode *ret = new_inode(sb); in sel_make_inode() [all …]
|
D | hooks.c | 368 static int superblock_alloc_security(struct super_block *sb) in superblock_alloc_security() argument 379 sbsec->sb = sb; in superblock_alloc_security() 383 sb->s_security = sbsec; in superblock_alloc_security() 388 static void superblock_free_security(struct super_block *sb) in superblock_free_security() argument 390 struct superblock_security_struct *sbsec = sb->s_security; in superblock_free_security() 391 sb->s_security = NULL; in superblock_free_security() 496 static int selinux_is_genfs_special_handling(struct super_block *sb) in selinux_is_genfs_special_handling() argument 499 return !strcmp(sb->s_type->name, "sysfs") || in selinux_is_genfs_special_handling() 500 !strcmp(sb->s_type->name, "pstore") || in selinux_is_genfs_special_handling() 501 !strcmp(sb->s_type->name, "debugfs") || in selinux_is_genfs_special_handling() [all …]
|
/security/ |
D | inode.c | 40 static int securityfs_fill_super(struct super_block *sb, struct fs_context *fc) in securityfs_fill_super() argument 45 error = simple_fill_super(sb, SECURITYFS_MAGIC, files); in securityfs_fill_super() 49 sb->s_op = &securityfs_super_operations; in securityfs_fill_super()
|
D | security.c | 732 int security_quotactl(int cmds, int type, int id, struct super_block *sb) in security_quotactl() argument 734 return call_int_hook(quotactl, 0, cmds, type, id, sb); in security_quotactl() 810 int security_sb_alloc(struct super_block *sb) in security_sb_alloc() argument 812 return call_int_hook(sb_alloc_security, 0, sb); in security_sb_alloc() 815 void security_sb_free(struct super_block *sb) in security_sb_free() argument 817 call_void_hook(sb_free_security, sb); in security_sb_free() 835 int security_sb_remount(struct super_block *sb, in security_sb_remount() argument 838 return call_int_hook(sb_remount, 0, sb, mnt_opts); in security_sb_remount() 842 int security_sb_kern_mount(struct super_block *sb) in security_sb_kern_mount() argument 844 return call_int_hook(sb_kern_mount, 0, sb); in security_sb_kern_mount() [all …]
|
/security/selinux/include/ |
D | objsec.h | 64 struct super_block *sb; /* back pointer to sb object */ member
|
D | security.h | 340 int security_fs_use(struct selinux_state *state, struct super_block *sb);
|
/security/smack/ |
D | smack_lsm.c | 541 static int smack_sb_alloc_security(struct super_block *sb) in smack_sb_alloc_security() argument 557 sb->s_security = sbsp; in smack_sb_alloc_security() 567 static void smack_sb_free_security(struct super_block *sb) in smack_sb_free_security() argument 569 kfree(sb->s_security); in smack_sb_free_security() 570 sb->s_security = NULL; in smack_sb_free_security() 778 static int smack_set_mnt_opts(struct super_block *sb, in smack_set_mnt_opts() argument 783 struct dentry *root = sb->s_root; in smack_set_mnt_opts() 785 struct superblock_smack *sp = sb->s_security; in smack_set_mnt_opts() 818 if (sb->s_user_ns != &init_user_ns && in smack_set_mnt_opts() 819 sb->s_magic != SYSFS_MAGIC && sb->s_magic != TMPFS_MAGIC && in smack_set_mnt_opts() [all …]
|
D | smackfs.c | 2826 static int smk_fill_super(struct super_block *sb, struct fs_context *fc) in smk_fill_super() argument 2885 rc = simple_fill_super(sb, SMACK_MAGIC, smack_files); in smk_fill_super()
|
/security/apparmor/ |
D | apparmorfs.c | 136 static int apparmorfs_fill_super(struct super_block *sb, struct fs_context *fc) in apparmorfs_fill_super() argument 141 error = simple_fill_super(sb, AAFS_MAGIC, files); in apparmorfs_fill_super() 144 sb->s_op = &aafs_super_ops; in apparmorfs_fill_super()
|
/security/selinux/ss/ |
D | services.c | 2801 int security_fs_use(struct selinux_state *state, struct super_block *sb) in security_fs_use() argument 2807 struct superblock_security_struct *sbsec = sb->s_security; in security_fs_use() 2808 const char *fstype = sb->s_type->name; in security_fs_use()
|