| 函数逻辑报告 | 
| Source Code: security\keys\request_key.c | Create Date:2022-07-27 19:57:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Get the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release.
函数原型:static int construct_get_dest_keyring(struct key **_dest_keyring)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct key ** | _dest_keyring | 
| 265 | 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.() | 
| 269 | kenter("%p", dest_keyring) | 
| 272 | 如果dest_keyring则 | 
| 274 | key_get(dest_keyring) | 
| 275 | 否则 | 
| 276 | bool do_perm_check = true | 
| 283 | 如果 assumed request_key authority 则 | 
| 285 | lock for reading | 
| 286 | rka等于get_request_key_auth(authkey) | 
| 287 | 如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则dest_keyring等于key_get(dest_keyring) | 
| 292 | 如果dest_keyring则 | 
| 293 | do_perm_check = false | 
| 294 | 退出 | 
| 301 | 如果dest_keyring则退出 | 
| 307 | 如果dest_keyring则退出 | 
| 314 | 如果dest_keyring则退出 | 
| 319 | ret等于Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. | 
| 322 | 退出 | 
| 325 | ret等于Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. | 
| 328 | 退出 | 
| 331 | 默认 | 
| 332 | BUG() | 
| 344 | 如果dest_keyring且do_perm_check则 | 
| 347 | 如果ret则 | 
| 355 | kleave(" [dk %d]", key_serial(dest_keyring)) | 
| 356 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| construct_key_and_link | Commence key construction. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |