Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:24:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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)

Proto:static int smack_key_getsecurity(struct key *key, char **_buffer)

Type:int

Parameter:

TypeParameterName
struct key *key
char **_buffer
4301  skp = security data for this key
4305  If ( security data for this key == NULL) Then
4306  * _buffer = NULL
4307  Return 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  If (copy == NULL) Then Return -ENOMEM
4313  length = strlen - Find the length of a string*@s: The string to be sized + 1
4315  _buffer = copy
4316  Return length