Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\include\avc.h Create Date:2022-07-28 18:42:31
Last Modify:2020-03-18 08:09:09 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:avc_audit - Audit the granting or denial of permissions

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If Value is more likely to compile time(!audited) Then Return 0
138  If flags & called from RCU mode, don't block Then Return -ECHILD
140  Return slow_avc_audit(state, ssid, tsid, tclass, requested, audited, denied, result, a)
Caller
NameDescribe
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.