Home
last modified time | relevance | path

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

/linux-6.6.21/security/selinux/
Dhooks.c343 struct superblock_security_struct *sbsec; in inode_free_security() local
347 sbsec = selinux_superblock(inode->i_sb); in inode_free_security()
359 spin_lock(&sbsec->isec_lock); in inode_free_security()
361 spin_unlock(&sbsec->isec_lock); in inode_free_security()
423 struct superblock_security_struct *sbsec, in may_context_mount_sb_relabel() argument
429 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
440 struct superblock_security_struct *sbsec, in may_context_mount_inode_relabel() argument
445 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
450 rc = avc_has_perm(sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
470 struct superblock_security_struct *sbsec = selinux_superblock(sb); in selinux_is_sblabel_mnt() local
[all …]
/linux-6.6.21/security/selinux/ss/
Dservices.c2911 struct superblock_security_struct *sbsec = selinux_superblock(sb); in security_fs_use() local
2915 sbsec->behavior = SECURITY_FS_USE_NONE; in security_fs_use()
2916 sbsec->sid = SECINITSID_UNLABELED; in security_fs_use()
2934 sbsec->behavior = c->v.behavior; in security_fs_use()
2935 rc = ocontext_to_sid(sidtab, c, 0, &sbsec->sid); in security_fs_use()
2944 SECCLASS_DIR, &sbsec->sid); in security_fs_use()
2950 sbsec->behavior = SECURITY_FS_USE_NONE; in security_fs_use()
2953 sbsec->behavior = SECURITY_FS_USE_GENFS; in security_fs_use()