Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Format 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

Proto:static void audit_log_vformat(struct audit_buffer *ab, const char *fmt, va_list args)

Type:void

Parameter:

TypeParameterName
struct audit_buffer *ab
const char *fmt
va_listargs
1845  If Not ab Then Return
1848  BUG_ON(!rmatted skb ready to send )
1849  skb = rmatted skb ready to send
1850  avail = 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
1851  If avail == 0 Then
1852  avail = 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.
1853  If Not avail Then Go to out
1856  va_copy(args2, args)
1857  len = vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
1858  If len >= avail Then
1862  avail = 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.
1864  If Not avail Then Go to out_va_end
1866  len = vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
1868  If len > 0 Then add data to a buffer
1870  out_va_end :
1871  va_end(args2)
1872  out :
1873  Return
Caller
NameDescribe
audit_log_formataudit_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.
audit_logaudit_log - Log an audit record*@ctx: audit context*@gfp_mask: type of allocation*@type: audit message type*@fmt: format string to use*@...: variable parameters matching the format string* This is a convenience function that calls audit_log_start,