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_u64

Proto:static bool unpack_u64(struct aa_ext *e, u64 *data, const char *name)

Type:bool

Parameter:

TypeParameterName
struct aa_ext *e
u64 *data
const char *name
337  pos = pointer to current position in the buffer
339  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
340  If Not st if read will be in packed data bounds Then Go to fail
342  If data Then data = le64_to_cpu(get value from possibly mis-aligned location((__le64 * )pointer to current position in the buffer ))
344  pointer to current position in the buffer += sizeof(u64)
345  Return 1
348  fail :
349  pointer to current position in the buffer = pos
350  Return 0
Caller
NameDescribe
unpack_rlimits