函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-27 12:30:50
Last Modify:2020-03-17 16:31:21 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void audit_log_name(struct audit_context *context, struct audit_names *n, const struct path *path, int record_num, int *call_panic)

返回类型:void

参数:

类型参数名称
struct audit_context *context
struct audit_names *n
const struct path *path
intrecord_num
int *call_panic
1322  ab等于申请审计缓冲区
1323  如果非ab则返回
1326  写入审计信息
1328  如果pathThis is a helper-function to print the escaped d_path
1330  否则如果name
1336  退出
1337  :umber of chars to log 恒等于0
1342  退出
1343  默认
1349  否则写入审计信息
1352  如果ino不等于AUDIT_INO_UNSET写入审计信息
1362  如果osid不等于0则
1363  char * ctx = NULL
1366  如果security_secid_to_secctx(osid, & ctx, & len)则
1369  如果call_paniccall_panic等于2
1371  否则
1381  退出
1384  退出
1387  退出
1390  退出
1391  默认
1393  退出
1396  audit_log_fcaps(ab, n)
调用者
名称描述
audit_log_exit