Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-28 18:43:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This is the slow part of avc audit with big stack footprint

Proto:noinline int slow_avc_audit(struct selinux_state *state, unsigned int ssid, unsigned int tsid, u16 tclass, unsigned int requested, unsigned int audited, unsigned int denied, int result, struct common_audit_data *a)

Type:int

Parameter:

TypeParameterName
struct selinux_state *state
unsigned intssid
unsigned inttsid
u16tclass
unsigned intrequested
unsigned intaudited
unsigned intdenied
intresult
struct common_audit_data *a
763  If WARN_ON(!tclass || tclass >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(Note: The name for any socket class should be suffixed by "socket",* and doesn't contain more than one substr of "socket".)) Then Return -EINVAL
766  If Not a Then
767  a = stack_data
768  type = LSM_AUDIT_DATA_NONE
771  tclass = tclass
772  requested = requested
773  ssid = ssid
774  tsid = tsid
775  audited = audited
776  denied = denied
777  result = result
778  state = state
780  selinux_audit_data = sad
782  common_lsm_audit(a, avc_audit_pre_callback - SELinux specific information* will be called by generic audit code*@ab: the audit buffer*@a: audit_data, avc_audit_post_callback - SELinux specific information* will be called by generic audit code*@ab: the audit buffer*@a: audit_data)
783  Return 0
Caller
NameDescribe
avc_xperms_audit
audit_inode_permission