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:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:unpack_rlimits

Proto:static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile)

Type:bool

Parameter:

TypeParameterName
struct aa_ext *e
struct aa_profile *profile
621  pos = pointer to current position in the buffer
624  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
626  tmp = 0
627  If Not unpack_u32(e, & tmp, NULL) Then Go to fail
629  mask = tmp
631  size = unpack_array(e, NULL)
632  If size > RLIM_NLIMITS Then Go to fail
634  When i < size cycle
635  tmp2 = 0
636  a = aa_map_resource(i)
637  If Not unpack_u64(e, & tmp2, NULL) Then Go to fail
639  rlim_max = tmp2
641  If Not 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 Go to fail
643  If Not 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 Go to fail
646  Return 1
648  fail :
649  pointer to current position in the buffer = pos
650  Return 0
Caller
NameDescribe
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