函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void audit_pre(struct audit_buffer *ab, void *ca)

返回类型:void

参数:

类型参数名称
struct audit_buffer *ab
void *ca
57  sa等于ca
59  如果aa_g_audit_header
60  写入审计信息
61  audit_log_string(ab, aa_audit_type[type])
64  如果op
65  写入审计信息
66  audit_log_string(ab, op)
69  如果info
70  写入审计信息
71  audit_log_string(ab, info)
72  如果error写入审计信息
76  如果label
77  label等于label
79  如果label_isprofile(label)则
82  如果ns不等于root_ns
89  否则
96  如果name
97  写入审计信息
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.