函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:55:08 |
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:long keyctl_instantiate_key_common(key_serial_t id, struct iov_iter *from, key_serial_t ringid)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| key_serial_t | id | |
| struct iov_iter * | from | |
| key_serial_t | ringid |
| 1100 | cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
| 1103 | plen等于如果from则iov_iter_count(from)否则0 |
| 1124 | 如果 key serial number 不等于id则转到:error |
| 1128 | payload = NULL |
| 1130 | 如果from则 |
| 1132 | payload等于kvmalloc(plen, GFP_KERNEL) |
| 1137 | 如果非copy_from_iter_full(payload, plen, from)则转到:error2 |
| 1143 | ret等于Get the destination keyring for instantiation and check that the caller has* Write permission on it. |
| 1158 | error2 : |
| 1159 | 如果payload则 |
| 1163 | error : |
| 1164 | 返回:ret |
| 名称 | 描述 |
|---|---|
| keyctl_instantiate_key | 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. |
| keyctl_instantiate_key_iov | Instantiate a key with the specified 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) |
| compat_keyctl_instantiate_key_iov | 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) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |