Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pack_nameX - check is the next element is of type X with a name of @name*@e: serialized data extent information (NOT NULL)*@code: type code*@name: name to match to the serialized element

Proto:static bool unpack_nameX(struct aa_ext *e, enum aa_code code, const char *name)

Type:bool

Parameter:

TypeParameterName
struct aa_ext *e
enum aa_codecode
const char *name
274  pos = pointer to current position in the buffer
279  If pack control byte Then
280  char * tag = NULL
281  size = aa_u16_chunck - test and do bounds checking for a u16 size based chunk*@e: serialized data read head (NOT NULL)*@chunk: start address for chunk of data (NOT NULL)* Returns: the size of chunk found with the read head at the end of the chunk.
283  If name && ( Not size || tag[size - 1] != '\0' || strcmp(name, tag)) Then Go to fail
285  Else if name Then
287  Go to fail
291  If pack control byte Then Return 1
294  fail :
295  pointer to current position in the buffer = pos
296  Return 0
Caller
NameDescribe
unpack_u8
unpack_u32
unpack_u64
unpack_array
unpack_blob
unpack_str
unpack_trans_tablepack_trans_table - unpack a profile transition table*@e: serialized data extent information (NOT NULL)*@profile: profile to add the accept table to (NOT NULL)* Returns: 1 if table successfully unpacked
unpack_xattrs
unpack_secmark
unpack_rlimits
unpack_profilepack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure