函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unpack_strdup

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

返回类型:int

参数:

类型参数名称
struct aa_ext *e
char **string
const char *name
419  pos等于pointer to current position in the buffer
420  res等于unpack_str(e, & tmp, name)
421  * string = NULL
423  如果非res则返回:0
426  string等于kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error
427  如果非string
428  pointer to current position in the buffer 等于pos
429  返回:0
432  返回:res
调用者
名称描述
unpack_trans_tablepack_trans_table - unpack a profile transition table*@e: serialized data extent information (NOT NULL)*@profile: profile to add the accept table to (NOT NULL)* Returns: 1 if table successfully unpacked
unpack_xattrs
unpack_secmark
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