函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\compat.c Create Date:2022-07-27 19:59:22
Last Modify:2020-03-18 08:03:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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)

函数原型:static long compat_keyctl_instantiate_key_iov(key_serial_t id, const struct compat_iovec __user *_payload_iov, unsigned ioc, key_serial_t ringid)

返回类型:long

参数:

类型参数名称
key_serial_tid
const struct compat_iovec __user *_payload_iov
unsignedioc
key_serial_tringid
29  iov等于iovstack
33  如果非_payload_iovioc等于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  如果ret小于0则返回: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  释放内存
44  返回:ret
调用者
名称描述
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs