函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unpack_secmark

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

返回类型:bool

参数:

类型参数名称
struct aa_ext *e
struct aa_profile *profile
577  pos等于pointer to current position in the buffer
580  如果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
581  size等于unpack_array(e, NULL)
583  secmark等于分配数组内存并置零
585  如果非secmark则转到:fail
588  secmark_count等于size
590 i小于size循环
591  如果非unpack_u8(e, & audit, NULL)则转到:fail
593  如果非unpack_u8(e, & deny, NULL)则转到:fail
595  如果非unpack_strdup(e, & label, NULL)则转到:fail
598  如果非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
600  如果非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
604  返回:1
606  fail :
607  如果secmark
608 i小于size循环释放内存
610  释放内存
611  secmark_count等于0
612  secmark = NULL
615  pointer to current position in the buffer 等于pos
616  返回: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