Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:audit_base - core AppArmor function.*@ab: audit buffer to fill (NOT NULL)*@ca: audit structure containing data to audit (NOT NULL)* Record common AppArmor audit data from @sa

Proto:static void audit_pre(struct audit_buffer *ab, void *ca)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
void *ca
57  sa = ca
59  If aa_g_audit_header Then
60  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.
61  audit_log_string(ab, aa_audit_type[type])
64  If op Then
65  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.
66  audit_log_string(ab, op)
69  If info Then
70  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.
71  audit_log_string(ab, info)
72  If error 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.
76  If label Then
77  label = label
79  If label_isprofile(label) Then
82  If ns != root_ns Then
89  Else
96  If name Then
97  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.
98  audit_log_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@string: string to be logged* Same as audit_log_n_untrustedstring(), except that strlen is used to* determine string length.