/security/tomoyo/ |
D | realpath.c | 151 struct super_block *sb = dentry->d_sb; in tomoyo_get_local_path() local 156 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { in tomoyo_get_local_path() 160 task_tgid_nr_ns(current, sb->s_fs_info)) { in tomoyo_get_local_path() 169 if (!MAJOR(sb->s_dev)) in tomoyo_get_local_path() 172 struct inode *inode = d_backing_inode(sb->s_root); in tomoyo_get_local_path() 184 const dev_t dev = sb->s_dev; in tomoyo_get_local_path() 198 const char *name = sb->s_type->name; in tomoyo_get_local_path() 257 struct super_block *sb; in tomoyo_realpath_from_path() local 260 sb = dentry->d_sb; in tomoyo_realpath_from_path() 272 if (sb->s_magic == SOCKFS_MAGIC) { in tomoyo_realpath_from_path() [all …]
|
/security/selinux/ |
D | hooks.c | 387 static int superblock_alloc_security(struct super_block *sb) in superblock_alloc_security() argument 398 sbsec->sb = sb; in superblock_alloc_security() 402 sb->s_security = sbsec; in superblock_alloc_security() 407 static void superblock_free_security(struct super_block *sb) in superblock_free_security() argument 409 struct superblock_security_struct *sbsec = sb->s_security; in superblock_free_security() 410 sb->s_security = NULL; in superblock_free_security() 475 static int selinux_is_genfs_special_handling(struct super_block *sb) in selinux_is_genfs_special_handling() argument 478 return !strcmp(sb->s_type->name, "sysfs") || in selinux_is_genfs_special_handling() 479 !strcmp(sb->s_type->name, "pstore") || in selinux_is_genfs_special_handling() 480 !strcmp(sb->s_type->name, "debugfs") || in selinux_is_genfs_special_handling() [all …]
|
D | selinuxfs.c | 1086 static struct inode *sel_make_inode(struct super_block *sb, int mode) in sel_make_inode() argument 1088 struct inode *ret = new_inode(sb); in sel_make_inode() 1792 static int sel_fill_super(struct super_block *sb, void *data, int silent) in sel_fill_super() argument 1821 ret = simple_fill_super(sb, SELINUX_MAGIC, selinux_files); in sel_fill_super() 1825 bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &sel_last_ino); in sel_fill_super() 1833 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME); in sel_fill_super() 1838 inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO); in sel_fill_super() 1852 dentry = sel_make_dir(sb->s_root, "avc", &sel_last_ino); in sel_fill_super() 1862 dentry = sel_make_dir(sb->s_root, "initial_contexts", &sel_last_ino); in sel_fill_super() 1872 class_dir = sel_make_dir(sb->s_root, "class", &sel_last_ino); in sel_fill_super() [all …]
|
/security/ |
D | inode.c | 47 static int fill_super(struct super_block *sb, void *data, int silent) in fill_super() argument 52 error = simple_fill_super(sb, SECURITYFS_MAGIC, files); in fill_super() 56 sb->s_op = &securityfs_super_operations; in fill_super()
|
D | security.c | 289 int security_quotactl(int cmds, int type, int id, struct super_block *sb) in security_quotactl() argument 291 return call_int_hook(quotactl, 0, cmds, type, id, sb); in security_quotactl() 357 int security_sb_alloc(struct super_block *sb) in security_sb_alloc() argument 359 return call_int_hook(sb_alloc_security, 0, sb); in security_sb_alloc() 362 void security_sb_free(struct super_block *sb) in security_sb_free() argument 364 call_void_hook(sb_free_security, sb); in security_sb_free() 373 int security_sb_remount(struct super_block *sb, void *data) in security_sb_remount() argument 375 return call_int_hook(sb_remount, 0, sb, data); in security_sb_remount() 378 int security_sb_kern_mount(struct super_block *sb, int flags, void *data) in security_sb_kern_mount() argument 380 return call_int_hook(sb_kern_mount, 0, sb, flags, data); in security_sb_kern_mount() [all …]
|
/security/selinux/include/ |
D | objsec.h | 78 struct super_block *sb; /* back pointer to sb object */ member
|
D | security.h | 225 int security_fs_use(struct super_block *sb);
|
/security/smack/ |
D | smack_lsm.c | 535 static int smack_sb_alloc_security(struct super_block *sb) in smack_sb_alloc_security() argument 551 sb->s_security = sbsp; in smack_sb_alloc_security() 561 static void smack_sb_free_security(struct super_block *sb) in smack_sb_free_security() argument 563 kfree(sb->s_security); in smack_sb_free_security() 564 sb->s_security = NULL; in smack_sb_free_security() 750 static int smack_set_mnt_opts(struct super_block *sb, in smack_set_mnt_opts() argument 755 struct dentry *root = sb->s_root; in smack_set_mnt_opts() 757 struct superblock_smack *sp = sb->s_security; in smack_set_mnt_opts() 784 if (sb->s_user_ns != &init_user_ns && in smack_set_mnt_opts() 785 sb->s_magic != SYSFS_MAGIC && sb->s_magic != TMPFS_MAGIC && in smack_set_mnt_opts() [all …]
|
D | smackfs.c | 2853 static int smk_fill_super(struct super_block *sb, void *data, int silent) in smk_fill_super() argument 2913 rc = simple_fill_super(sb, SMACK_MAGIC, smack_files); in smk_fill_super() 2920 root_inode = d_inode(sb->s_root); in smk_fill_super()
|
/security/apparmor/ |
D | apparmorfs.c | 148 static int fill_super(struct super_block *sb, void *data, int silent) in fill_super() argument 153 error = simple_fill_super(sb, AAFS_MAGIC, files); in fill_super() 156 sb->s_op = &aafs_super_ops; in fill_super()
|
/security/selinux/ss/ |
D | services.c | 2663 int security_fs_use(struct super_block *sb) in security_fs_use() argument 2667 struct superblock_security_struct *sbsec = sb->s_security; in security_fs_use() 2668 const char *fstype = sb->s_type->name; in security_fs_use()
|