函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unpack_xattrs

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

返回类型:bool

参数:

类型参数名称
struct aa_ext *e
struct aa_profile *profile
548  pos等于pointer to current position in the buffer
550  如果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
553  size等于unpack_array(e, NULL)
554  xattr_count等于size
555  xattrs等于分配数组内存并置零
556  如果非xattrs则转到:fail
558 i小于size循环
559  如果非unpack_strdup(e, & xattrs[i], NULL)则转到:fail
562  如果非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
564  如果非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
568  返回:1
570  fail :
571  pointer to current position in the buffer 等于pos
572  返回: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