Home
last modified time | relevance | path

Searched refs:sbsec (Results 1 – 2 of 2) sorted by relevance

/security/selinux/
Dhooks.c335 struct superblock_security_struct *sbsec; in inode_free_security() local
339 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() local
372 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 …]
/security/selinux/ss/
Dservices.c2838 struct superblock_security_struct *sbsec = sb->s_security; in security_fs_use() local
2856 sbsec->behavior = c->v.behavior; in security_fs_use()
2857 rc = ocontext_to_sid(sidtab, c, 0, &sbsec->sid); in security_fs_use()
2864 &sbsec->sid); in security_fs_use()
2866 sbsec->behavior = SECURITY_FS_USE_NONE; in security_fs_use()
2869 sbsec->behavior = SECURITY_FS_USE_GENFS; in security_fs_use()