函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\policy_unpack.c Create Date:2022-07-27 21:35:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:unpack_rlimits

函数原型:static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile)

返回类型:bool

参数:

类型参数名称
struct aa_ext *e
struct aa_profile *profile
621  pos等于pointer to current position in the buffer
624  如果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
626  tmp等于0
627  如果非unpack_u32(e, & tmp, NULL)则转到:fail
629  mask等于tmp
631  size等于unpack_array(e, NULL)
632  如果size大于RLIM_NLIMITS则转到:fail
634 i小于size循环
635  tmp2等于0
636  a等于aa_map_resource(i)
637  如果非unpack_u64(e, & tmp2, NULL)则转到:fail
639  rlim_max等于tmp2
641  如果非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则转到:fail
643  如果非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则转到:fail
646  返回:1
648  fail :
649  pointer to current position in the buffer 等于pos
650  返回:0
调用者
名称描述
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