函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_xperms_audit_required

函数原型:static inline unsigned int avc_xperms_audit_required(unsigned int requested, struct av_decision *avd, struct extended_perms_decision *xpd, u8 perm, int result, unsigned int *deniedp)

返回类型:unsigned int

参数:

类型参数名称
unsigned intrequested
struct av_decision *avd
struct extended_perms_decision *xpd
u8perm
intresult
unsigned int *deniedp
392  denied等于requested按位与allowed的反
393  如果此条件成立可能性小(为编译器优化)(denied)则
394  audited等于denied按位与auditdeny
395  如果auditedxpd
399  否则如果result
400  audited等于denied等于requested
401  否则
402  audited等于requested按位与auditallow
403  如果auditedxpd
404  如果非avc_xperms_has_perm(xpd, perm, XPERMS_AUDITALLOW)则audited与等于requested的反
409  deniedp等于denied
410  返回:audited
调用者
名称描述
avc_xperms_audit