Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_audit_pre_callback - SELinux specific information* will be called by generic audit code*@ab: the audit buffer*@a: audit_data

Proto:static void avc_audit_pre_callback(struct audit_buffer *ab, void *a)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
void *a
662  ad = a
663  sad = selinux_audit_data
664  av = audited
668  audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.
670  If av == 0 Then
671  audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.
672  Return
675  perms = perms
677  audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.
678  i = 0
679  perm = 1
680  When i < size of av * 8 cycle
681  If perm & av && perms[i] Then
683  av &= ~perm
685  i++
686  perm <<= 1
689  If av Then audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.
692  audit_log_format - format a message into the audit buffer.*@ab: audit_buffer*@fmt: format string*@...: optional parameters matching @fmt string* All the work is done in audit_log_vformat.