| 函数逻辑报告 | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-27 19:54:07 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Search the process keyrings and keyring trees linked from those for a* matching key. Keyrings must have appropriate Search permission to be* searched.* If a key is found, it will be attached to the destination keyring if there's
函数原型:SYSCALL_DEFINE4(request_key, const char __user *, _type, const char __user *, _description, const char __user *, _callout_info, key_serial_t, destringid)
返回类型:
参数:无
| 181 | ret等于key_get_type_from_user(type, _type, type的长度) | 
| 187 | 如果是错误则 | 
| 193 | callout_info = NULL | 
| 194 | callout_len等于0 | 
| 195 | 如果_callout_info则 | 
| 197 | 如果是错误则 | 
| 205 | dest_ref = NULL | 
| 206 | 如果destringid则 | 
| 209 | 如果是错误则 | 
| 216 | ktype等于Find and lock the specified key type against removal.* We return with the sem read-locked if successful. If the type wasn't* available -ENOKEY is returned instead. | 
| 217 | 如果是错误则 | 
| 226 | 如果是错误则 | 
| 232 | ret等于wait_for_key_construction(key, 1) | 
| 236 | ret等于 key serial number | 
| 238 | error6 : | 
| 240 | error5 : | 
| 242 | error4 : | 
| 243 | key_ref_put(dest_ref) | 
| 244 | error3 : | 
| 245 | 释放内存 | 
| 246 | error2 : | 
| 247 | 释放内存 | 
| 248 | error : | 
| 249 | 返回:ret | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |