Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-28 18:42:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:avc_xperms_has_perm

Proto:static inline unsigned int avc_xperms_has_perm(struct extended_perms_decision *xpd, u8 perm, u8 which)

Type:unsigned int

Parameter:

TypeParameterName
struct extended_perms_decision *xpd
u8perm
u8which
200  rc = 0
202  If which == XPERMS_ALLOWED && used & XPERMS_ALLOWED Then rc = security_xperm_test(p, perm)
205  Else if which == XPERMS_AUDITALLOW && used & XPERMS_AUDITALLOW Then rc = security_xperm_test(p, perm)
208  Else if which == XPERMS_DONTAUDIT && used & XPERMS_DONTAUDIT Then rc = security_xperm_test(p, perm)
211  Return rc
Caller
NameDescribe
avc_xperms_audit_required
avc_has_extended_permsThe avc extended permissions logic adds an additional 256 bits of* permissions to an avc node when extended permissions for that node are* specified in the avtab