Lines Matching refs:sb
854 * @sb: the superblock that needs a blob
860 static int lsm_superblock_alloc(struct super_block *sb)
862 return lsm_blob_alloc(&sb->s_security, blob_sizes.lbs_superblock,
1150 * @sb: filesystem
1152 * Check whether the quotactl syscall is allowed for this @sb.
1156 int security_quotactl(int cmds, int type, int id, const struct super_block *sb)
1158 return call_int_hook(quotactl, cmds, type, id, sb);
1399 * @sb: filesystem superblock
1401 * Allocate and attach a security structure to the sb->s_security field. The
1403 * @sb contains the super_block structure to be modified.
1407 int security_sb_alloc(struct super_block *sb)
1409 int rc = lsm_superblock_alloc(sb);
1413 rc = call_int_hook(sb_alloc_security, sb);
1415 security_sb_free(sb);
1421 * @sb: filesystem superblock
1423 * Release objects tied to a superblock (e.g. inodes). @sb contains the
1426 void security_sb_delete(struct super_block *sb)
1428 call_void_hook(sb_delete, sb);
1433 * @sb: filesystem superblock
1435 * Deallocate and clear the sb->s_security field. @sb contains the super_block
1438 void security_sb_free(struct super_block *sb)
1440 call_void_hook(sb_free_security, sb);
1441 kfree(sb->s_security);
1442 sb->s_security = NULL;
1477 * @sb: filesystem superblock
1481 * existing mounted filesystem at @sb. @sb superblock being compared.
1485 int security_sb_mnt_opts_compat(struct super_block *sb,
1488 return call_int_hook(sb_mnt_opts_compat, sb, mnt_opts);
1494 * @sb: filesystem superblock
1502 int security_sb_remount(struct super_block *sb,
1505 return call_int_hook(sb_remount, sb, mnt_opts);
1511 * @sb: filesystem superblock
1513 * Mount this @sb if allowed by permissions.
1517 int security_sb_kern_mount(const struct super_block *sb)
1519 return call_int_hook(sb_kern_mount, sb);
1525 * @sb: filesystem superblock
1527 * Show (print on @m) mount options for this @sb.
1531 int security_sb_show_options(struct seq_file *m, struct super_block *sb)
1533 return call_int_hook(sb_show_options, m, sb);
1604 * @sb: filesystem superblock
1613 int security_sb_set_mnt_opts(struct super_block *sb,
1622 rc = scall->hl->hook.sb_set_mnt_opts(sb, mnt_opts, kern_flags,