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:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Verify a signature

Proto:long keyctl_pkey_verify(const struct keyctl_pkey_params __user *_params, const char __user *_info, const void __user *_in, const void __user *_in2)

Type:long

Parameter:

TypeParameterName
const struct keyctl_pkey_params __user *_params
const char __user *_info
const void __user *_in
const void __user *_in2
291  ret = Get parameters from userspace. Callers must always call the free function* on params, even if an error is returned.
293  If ret < 0 Then Go to error_params
296  ret = -EOPNOTSUPP
297  If Not asym_verify_signature Then Go to error_params
300  in = memdup_user - duplicate memory region from user space*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. Result is physically* contiguous, to be freed by kfree().
301  If IS_ERR(in) Then
302  ret = PTR_ERR(in)
303  Go to error_params
306  in2 = memdup_user - duplicate memory region from user space*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. Result is physically* contiguous, to be freed by kfree().
307  If IS_ERR(in2) Then
308  ret = PTR_ERR(in2)
309  Go to error_in
312  op = kernel_pkey_verify
313  ret = asym_verify_signature( & params, in, in2)
315  kfree(in2)
316  error_in :
317  kfree(in)
318  error_params :
319  keyctl_pkey_params_free( & params)
320  Return ret
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs