函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:le_audit_cb - call back for file specific audit fields*@ab: audit_buffer (NOT NULL)*@va: audit struct to audit values of (NOT NULL)

函数原型:static void file_audit_cb(struct audit_buffer *ab, void *va)

返回类型:void

参数:

类型参数名称
struct audit_buffer *ab
void *va
58  sa等于va
59  fsuid等于current_fsuid()
61  如果request按位与AA_AUDIT_FILE_MASK
62  写入审计信息
63  audit_file_mask - convert mask to permission string*@buffer: buffer to write string to (NOT NULL)*@mask: permission mask to convert
65  如果denied按位与AA_AUDIT_FILE_MASK
66  写入审计信息
67  audit_file_mask - convert mask to permission string*@buffer: buffer to write string to (NOT NULL)*@mask: permission mask to convert
69  如果request按位与AA_AUDIT_FILE_MASK
70  写入审计信息
72  写入审计信息
76  如果peer
77  写入审计信息
78  aa_label_xaudit(ab, labels_ns(label), peer, FLAG_VIEW_SUBNS, GFP_KERNEL)
80  否则如果target
81  写入审计信息
82  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.