Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\file.c Create Date:2022-07-28 19:53:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void file_audit_cb(struct audit_buffer *ab, void *va)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
void *va
58  sa = va
59  fsuid = current_fsuid()
61  If request & AA_AUDIT_FILE_MASK Then
62  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.
63  audit_file_mask - convert mask to permission string*@buffer: buffer to write string to (NOT NULL)*@mask: permission mask to convert
65  If denied & AA_AUDIT_FILE_MASK Then
66  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.
67  audit_file_mask - convert mask to permission string*@buffer: buffer to write string to (NOT NULL)*@mask: permission mask to convert
69  If request & AA_AUDIT_FILE_MASK Then
70  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.
72  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.
76  If peer Then
77  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.
78  aa_label_xaudit(ab, labels_ns(label), peer, FLAG_VIEW_SUBNS, GFP_KERNEL)
80  Else if target Then
81  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.
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.