Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\compat.c Create Date:2022-07-28 18:24:56
Last Modify:2020-03-18 08:03:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Instantiate a key with the specified compatibility multipart payload and* link the key into the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority)

Proto:static long compat_keyctl_instantiate_key_iov(key_serial_t id, const struct compat_iovec __user *_payload_iov, unsigned ioc, key_serial_t ringid)

Type:long

Parameter:

TypeParameterName
key_serial_tid
const struct compat_iovec __user *_payload_iov
unsignedioc
key_serial_tringid
29  iov = iovstack
33  If Not _payload_iov Then ioc = 0
36  ret = compat_import_iovec(WRITE, _payload_iov, ioc, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(iovstack), & iov, & from)
39  If ret < 0 Then Return ret
42  ret = Instantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required.
43  kfree(iov)
44  Return ret
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs