函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_audit - Audit the granting or denial of permissions

函数原型:static inline int avc_audit(struct selinux_state *state, unsigned int ssid, unsigned int tsid, u16 tclass, unsigned int requested, struct av_decision *avd, int result, struct common_audit_data *a, int flags)

返回类型:int

参数:

类型参数名称
struct selinux_state *state
unsigned intssid
unsigned inttsid
u16tclass
unsigned intrequested
struct av_decision *avd
intresult
struct common_audit_data *a
intflags
134  audited等于avc_audit_required(requested, avd, result, 0, & denied)
135  如果此条件成立可能性大(为编译器优化)(!audited)则返回:0
138  如果flags按位与called from RCU mode, don't block 则返回:负ECHILD
140  返回:slow_avc_audit(state, ssid, tsid, tclass, requested, audited, denied, result, a)
调用者
名称描述
avc_has_permavc_has_perm - Check permissions and perform any appropriate auditing
avc_has_perm_flags
cred_has_capabilityCheck whether a task is allowed to use a capability.