Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-28 11:27:33
Last Modify:2020-03-17 16:31:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_log_name - produce AUDIT_PATH record from struct audit_names*@context: audit_context for the task*@n: audit_names structure with reportable details*@path: optional path to report instead of audit_names->name*@record_num: record number to report when

Proto:static void audit_log_name(struct audit_context *context, struct audit_names *n, const struct path *path, int record_num, int *call_panic)

Type:void

Parameter:

TypeParameterName
struct audit_context *context
struct audit_names *n
const struct path *path
intrecord_num
int *call_panic
1322  ab = audit_log_start - obtain an audit buffer*@ctx: audit_context (may be NULL)*@gfp_mask: type of allocation*@type: audit message type* Returns audit_buffer pointer on success or NULL on error
1323  If Not ab Then Return
1326  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.
1328  If path Then This is a helper-function to print the escaped d_path
1330  Else if name Then
1336  Break
1337  Case umber of chars to log == 0
1342  Break
1343  Default
1349  Else 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.
1352  If ino != AUDIT_INO_UNSET 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.
1362  If osid != 0 Then
1363  char * ctx = NULL
1366  If security_secid_to_secctx(osid, & ctx, & len) Then
1369  If call_panic Then call_panic = 2
1371  Else
1391  Default
1396  audit_log_fcaps(ab, n)
Caller
NameDescribe
audit_log_exit