Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Interpret parameters. Callers must always call the free function* on params, even if an error is returned.

Proto:static int keyctl_pkey_params_get(key_serial_t id, const char __user *_info, struct kernel_pkey_params *params)

Type:int

Parameter:

TypeParameterName
key_serial_tid
const char __user *_info
struct kernel_pkey_params *params
86  memset(params, 0, size of params )
87  Encoding (eg. "oaep" or "raw" for none) = "raw"
89  p = strndup_user - duplicate an existing string from user space*@s: The string to duplicate*@n: Maximum number of bytes to copy, including the trailing NUL.* Return: newly allocated copy of @s or an ERR_PTR() in case of error
90  If IS_ERR(p) Then Return PTR_ERR(p)
92  Modified info string to be released later = p
94  ret = Parse the information string which consists of key=val pairs.
95  If ret < 0 Then Return ret
98  key_ref = Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip
99  If IS_ERR(key_ref) Then Return PTR_ERR(key_ref)
101  key = key_ref_to_ptr(key_ref)
103  If Not asym_query Then Return -EOPNOTSUPP
106  Return 0
Caller
NameDescribe
keyctl_pkey_params_get_2Get parameters from userspace. Callers must always call the free function* on params, even if an error is returned.
keyctl_pkey_queryQuery information about an asymmetric key.