Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Unpack a filter field's string representation from user-space* buffer.

Proto:char *audit_unpack_string(void **bufp, size_t *remain, size_t len)

Type:char

Parameter:

TypeParameterName
void **bufp
size_t *remain
size_tlen
129  If Not bufp || len == 0 || len > remain Then Return ERR_PTR( - EINVAL)
135  If len > # chars in a path name including nul Then Return ERR_PTR( - ENAMETOOLONG)
138  str = Allocation memory
139  If Value for the false possibility is greater at compile time(!str) Then Return ERR_PTR( - ENOMEM)
142  No 3D Now!(str, * bufp, len)
143  str[len] = 0
144  bufp += len
145  remain -= len
147  Return str
Caller
NameDescribe
audit_receive_msg
audit_data_to_entryTranslate struct audit_rule_data to kernel's rule representation.