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:unpack_blob

Proto:static size_t unpack_blob(struct aa_ext *e, char **blob, const char *name)

Type:size_t

Parameter:

TypeParameterName
struct aa_ext *e
char **blob
const char *name
373  pos = pointer to current position in the buffer
375  If 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 Then
377  If Not st if read will be in packed data bounds Then Go to fail
379  size = le32_to_cpu(get value from possibly mis-aligned location((__le32 * )pointer to current position in the buffer ))
380  pointer to current position in the buffer += sizeof(u32)
384  Return size
388  fail :
389  pointer to current position in the buffer = pos
390  Return 0
Caller
NameDescribe
unpack_dfapack_dfa - unpack a file rule dfa*@e: serialized data extent information (NOT NULL)* returns dfa or ERR_PTR or NULL if no dfa
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