函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-27 12:26:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is a helper-function to print the escaped d_path

函数原型:void audit_log_d_path(struct audit_buffer *ab, const char *prefix, const struct path *path)

返回类型:void

参数:

类型参数名称
struct audit_buffer *ab
const char *prefix
const struct path *path
2024  如果prefix写入审计信息
2028  pathname等于开辟内存
2029  如果非pathname
2030  audit_log_string(ab, "<no_memory>")
2031  返回
2033  p等于d_path(path, pathname, # chars in a path name including nul + 11)
2034  如果是错误
2036  audit_log_string(ab, "<too_long>")
2037  否则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)
调用者
名称描述
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