函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_getprocattr - Smack process attribute access*@p: the object task*@name: the name of the attribute in /proc/.../attr*@value: where to put the result* Places a copy of the task Smack into value* Returns the length of the smack label or an error code

函数原型:static int smack_getprocattr(struct task_struct *p, char *name, char **value)

返回类型:int

参数:

类型参数名称
struct task_struct *p
char *name
char **value
3490  skp等于smk_of_task_struct(p)
3494  如果字符串比较不等于0则返回:负EINVAL
3497  cp等于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
3498  如果(cp == NULL)则返回:负ENOMEM
3501  slen等于strlen - Find the length of a string*@s: The string to be sized
3502  value等于cp
3503  返回:slen