Searched refs:sbsec (Results 1 – 2 of 2) sorted by relevance
335 struct superblock_security_struct *sbsec; in inode_free_security() local339 sbsec = inode->i_sb->s_security; in inode_free_security()351 spin_lock(&sbsec->isec_lock); in inode_free_security()353 spin_unlock(&sbsec->isec_lock); in inode_free_security()370 struct superblock_security_struct *sbsec; in superblock_alloc_security() local372 sbsec = kzalloc(sizeof(struct superblock_security_struct), GFP_KERNEL); in superblock_alloc_security()373 if (!sbsec) in superblock_alloc_security()376 mutex_init(&sbsec->lock); in superblock_alloc_security()377 INIT_LIST_HEAD(&sbsec->isec_head); in superblock_alloc_security()378 spin_lock_init(&sbsec->isec_lock); in superblock_alloc_security()[all …]
2755 struct superblock_security_struct *sbsec = sb->s_security; in security_fs_use() local2771 sbsec->behavior = c->v.behavior; in security_fs_use()2778 sbsec->sid = c->sid[0]; in security_fs_use()2781 &sbsec->sid); in security_fs_use()2783 sbsec->behavior = SECURITY_FS_USE_NONE; in security_fs_use()2786 sbsec->behavior = SECURITY_FS_USE_GENFS; in security_fs_use()