函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_xaudit

函数原型:void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp)

返回类型:void

参数:

类型参数名称
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  如果非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
1719  len等于aa_label_asxprint - allocate a string buffer and print label into it*@strp: Returns - the allocated buffer with the label name
1720  如果len恒等于负1则
1721  AA_DEBUG("label print error")
1722  返回
1724  str等于name
1725  否则
1726  str等于hname
1727  len等于strlen - Find the length of a string*@s: The string to be sized
1729  如果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 checkaudit_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  否则Format a string of no more than slen characters into the audit buffer,* enclosed in quote marks.
1734  释放内存
调用者
名称描述
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