函数逻辑报告 |
Source Code:security\keys\request_key_auth.c |
Create Date:2022-07-27 19:58:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Create an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
函数原型:struct key *request_key_auth_new(struct key *target, const char *op, const void *callout_info, size_t callout_len, struct key *dest_keyring)
返回类型:struct key
参数:
类型 | 参数 | 名称 |
---|---|---|
struct key * | target | |
const char * | op | |
const void * | callout_info | |
size_t | callout_len | |
struct key * | dest_keyring |
167 | 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.() |
172 | kenter("%d,", key serial number ) |
179 | 如果非callout_info则转到:error_free_rka |
181 | callout_len等于callout_len |
182 | 长字符串复制 |
186 | 如果 assumed request_key authority 则 |
188 | lock for reading |
205 | 否则 |
211 | target_key等于key_get(target) |
212 | dest_keyring等于key_get(dest_keyring) |
215 | 输出格式化串 |
221 | 如果是错误则 |
223 | 转到:error_free_rka |
228 | 如果ret小于0则转到:error_put_authkey |
231 | kleave(" = {%d,%d}", key serial number , _read - get a refcount's value*@r: the refcount* Return: the refcount's value) |
232 | 返回:authkey |
234 | error_put_authkey : |
236 | error_free_rka : |
237 | free_request_key_auth(rka) |
238 | error : |
240 | 返回:错误号 |
名称 | 描述 |
---|---|
construct_key | Call out to userspace for key construction.* Program failure is ignored in favour of key status. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |