Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_label_xaudit

Proto:void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
struct aa_ns *ns
struct aa_label *label
intflags
gfp_tgfp
1711  char * name = NULL
1714  AA_BUG(!ab)
1715  AA_BUG(!label)
1717  If Not ached label name is present and visible*@label->hname only exists if label is namespace hierachical || any visible label is not unconfined the display_mode returns true Then
1719  len = aa_label_asxprint - allocate a string buffer and print label into it*@strp: Returns - the allocated buffer with the label name
1720  If len == -1 Then
1721  AA_DEBUG("label print error")
1722  Return
1724  str = name
1725  Else
1726  str = hname
1727  len = strlen - Find the length of a string*@s: The string to be sized
1729  If audit_string_contains_control - does a string need to be logged in hex*@string: string to be checked*@len: max length of the string to check Then audit_log_n_hex - convert a buffer to hex and append it to the audit skb*@ab: the audit_buffer*@buf: buffer to convert to hex*@len: length of @buf to be converted* No return value; failure to expand is silently ignored
1731  Else Format a string of no more than slen characters into the audit buffer,* enclosed in quote marks.
1734  kfree(name)
Caller
NameDescribe
audit_ptrace_cball back to audit ptrace fields
audit_signal_cbaudit_cb - call back for signal specific audit fields*@ab: audit_buffer (NOT NULL)*@va: audit struct to audit values of (NOT NULL)
aa_audit_perms_cbaa_audit_perms_cb - generic callback fn for auditing perms*@ab: audit buffer (NOT NULL)*@va: audit struct to audit values of (NOT NULL)
audit_cbaudit callback for resource specific fields
file_audit_cble_audit_cb - call back for file specific audit fields*@ab: audit_buffer (NOT NULL)*@va: audit struct to audit values of (NOT NULL)
aa_label_audit
audit_net_cbaudit callback for net specific fields