函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lsm_append

函数原型:static int lsm_append(const char *new, char **result)

返回类型:int

参数:

类型参数名称
const char *new
char **result
418  如果( * result == NULL)则
419  result等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
420  如果( * result == NULL)则返回:负ENOMEM
422  否则
424  如果match_last_lsm( * result, new)则返回:0
426  cp等于kasprintf(GFP_KERNEL, "%s,%s", * result, new)
427  如果(cp == NULL)则返回:负ENOMEM
429  释放内存
430  result等于cp
432  返回:0
调用者
名称描述
security_init内核安全框架初始化
security_add_hookssecurity_add_hooks - Add a modules hooks to the hook lists.*@hooks: the hooks to add*@count: the number of hooks to add*@lsm: the name of the security module* Each LSM has to register its hooks with the infrastructure.