函数逻辑报告 |
Source Code:security\keys\request_key.c |
Create Date:2022-07-27 19:57:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Request userspace finish the construction of a key* - execute "/sbin/request-key <op> <key> <uid> <gid> <keyring> <keyring> <keyring>"
函数原型:static int call_sbin_request_key(struct key *authkey, void *aux)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct key * | authkey | |
| void * | aux |
| 117 | request_key[]等于"/sbin/request-key" |
| 118 | rka等于get_request_key_auth(authkey) |
| 119 | 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.() |
| 121 | key等于target_key |
| 123 | char key_str[12], keyring_str[3][12] |
| 127 | kenter("{%d},{%d},%s", key serial number , key serial number , op) |
| 129 | ret等于Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. |
| 134 | 输出格式化串 |
| 141 | 如果是错误则 |
| 143 | 转到:error_alloc |
| 148 | 如果ret小于0则转到:error_link |
| 152 | 输出格式化串 |
| 153 | 输出格式化串 |
| 156 | 输出格式化串 |
| 159 | 输出格式化串 |
| 162 | prkey等于0 |
| 165 | 输出格式化串 |
| 168 | 如果非session则session等于user_session |
| 170 | sskey等于 key serial number |
| 172 | 输出格式化串 |
| 175 | i等于0 |
| 181 | i等于0 |
| 182 | argv[i++]等于request_key |
| 187 | argv[i++]等于keyring_str[0] |
| 188 | argv[i++]等于keyring_str[1] |
| 189 | argv[i++]等于keyring_str[2] |
| 196 | 如果ret大于等于0则 |
| 201 | 否则ret等于0 |
| 207 | error_link : |
| 210 | error_alloc : |
| 212 | error_us : |
| 215 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |