函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_audit_required

函数原型:static inline unsigned int avc_audit_required(unsigned int requested, struct av_decision *avd, int result, unsigned int auditdeny, unsigned int *deniedp)

返回类型:unsigned int

参数:

类型参数名称
unsigned intrequested
struct av_decision *avd
intresult
unsigned intauditdeny
unsigned int *deniedp
71  denied等于requested按位与allowed的反
72  如果此条件成立可能性小(为编译器优化)(denied)则
73  audited等于denied按位与auditdeny
90  如果auditdeny且非auditdeny按位与auditdeny的值则audited等于0
92  否则如果resultaudited等于denied等于requested
94  否则audited等于requested按位与auditallow
96  deniedp等于denied
97  返回:audited
调用者
名称描述
selinux_inode_permission
avc_auditavc_audit - Audit the granting or denial of permissions