Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:23:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_expand - expand skb in the audit buffer*@ab: audit_buffer*@extra: space to add at tail of the skb* Returns 0 (no space) on failed expansion, or available space if* successful.

Proto:static inline int audit_expand(struct audit_buffer *ab, int extra)

Type:int

Parameter:

TypeParameterName
struct audit_buffer *ab
intextra
1818  skb = rmatted skb ready to send
1819  oldtail = skb_tailroom - bytes at buffer end*@skb: buffer to check* Return the number of bytes of free space at the tail of an sk_buff
1820  ret = reallocate header of sk_buff
1821  newtail = skb_tailroom - bytes at buffer end*@skb: buffer to check* Return the number of bytes of free space at the tail of an sk_buff
1823  If ret < 0 Then
1824  audit_log_lost - conditionally log lost audit message event*@message: the message stating reason for lost audit message* Emit at least 1 message per second, even if audit_rate_check is* throttling.* Always increment the lost messages counter.
1825  Return 0
1828  truesize += newtail - oldtail
1829  Return newtail
Caller
NameDescribe
audit_log_vformatFormat an audit message into the audit buffer. If there isn't enough* room in the audit buffer, more room will be allocated and vsnprint* will be called a second time. Currently, we assume that a printk
audit_log_n_hexaudit_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
audit_log_n_stringFormat a string of no more than slen characters into the audit buffer,* enclosed in quote marks.