函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unpack_str

函数原型:static int unpack_str(struct aa_ext *e, const char **string, const char *name)

返回类型:int

参数:

类型参数名称
struct aa_ext *e
const char **string
const char *name
396  size等于0
397  pos等于pointer to current position in the buffer
398  * string = NULL
399  如果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
400  size等于aa_u16_chunck - test and do bounds checking for a u16 size based chunk*@e: serialized data read head (NOT NULL)*@chunk: start address for chunk of data (NOT NULL)* Returns: the size of chunk found with the read head at the end of the chunk.
401  如果size
403  如果src_str[size - 1]不等于0则转到:fail
405  string等于src_str
407  返回:size
411  fail :
412  pointer to current position in the buffer 等于pos
413  返回:0
调用者
名称描述
unpack_strdup
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
verify_headerverify_head - unpack serialized stream header*@e: serialized data read head (NOT NULL)*@required: whether the header is required or optional*@ns: Returns - namespace if one is specified else NULL (NOT NULL)* Returns: error or 0 if header is good