函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-27 20:16:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:avc_xperms_has_perm

函数原型:static inline unsigned int avc_xperms_has_perm(struct extended_perms_decision *xpd, u8 perm, u8 which)

返回类型:unsigned int

参数:

类型参数名称
struct extended_perms_decision *xpd
u8perm
u8which
200  rc等于0
202  如果which恒等于XPERMS_ALLOWEDused按位与XPERMS_ALLOWEDrc等于security_xperm_test(p, perm)
205  否则如果which恒等于XPERMS_AUDITALLOWused按位与XPERMS_AUDITALLOWrc等于security_xperm_test(p, perm)
208  否则如果which恒等于XPERMS_DONTAUDITused按位与XPERMS_DONTAUDITrc等于security_xperm_test(p, perm)
211  返回:rc
调用者
名称描述
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