函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_key_getsecurity - Smack label tagging the key*@key points to the key to be queried*@_buffer points to a pointer that should be set to point to the* resulting string (if no label or an error occurs)

函数原型:static int smack_key_getsecurity(struct key *key, char **_buffer)

返回类型:int

参数:

类型参数名称
struct key *key
char **_buffer
4301  skp等于 security data for this key
4305  如果( security data for this key == NULL)则
4306  * _buffer = NULL
4307  返回:0
4310  copy等于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
4311  如果(copy == NULL)则返回:负ENOMEM
4313  length等于strlen - Find the length of a string*@s: The string to be sized加1
4315  _buffer等于copy
4316  返回:length