Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is a helper-function to print the escaped d_path

Proto:void audit_log_d_path(struct audit_buffer *ab, const char *prefix, const struct path *path)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
const char *prefix
const struct path *path
2024  If prefix 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.
2028  pathname = Allocation memory
2029  If Not pathname Then
2030  audit_log_string(ab, "<no_memory>")
2031  Return
2033  p = d_path(path, pathname, # chars in a path name including nul + 11)
2034  If IS_ERR(p) Then
2036  audit_log_string(ab, "<too_long>")
2037  Else 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.
2039  kfree(pathname)
Caller
NameDescribe
audit_log_d_path_exe
audit_log_nameaudit_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
audit_log_exit
dump_common_audit_datadump_common_audit_data - helper to dump common audit data*@a : common audit data