函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int keyctl_pkey_params_get(key_serial_t id, const char __user *_info, struct kernel_pkey_params *params)

返回类型:int

参数:

类型参数名称
key_serial_tid
const char __user *_info
struct kernel_pkey_params *params
86  memset(params, 0, 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  如果是错误则返回:错误
92  Modified info string to be released later 等于p
94  ret等于Parse the information string which consists of key=val pairs.
95  如果ret小于0则返回: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  如果是错误则返回:错误
101  key等于key_ref_to_ptr(key_ref)
103  如果非asym_query则返回:负EOPNOTSUPP
106  返回:0
调用者
名称描述
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.