函数逻辑报告 |
Source Code:security\keys\key.c |
Create Date:2022-07-27 19:50:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:key_instantiate_and_link - Instantiate a key and link it into the keyring.*@key: The key to instantiate.*@data: The data to use to instantiate the keyring.*@datalen: The length of @data.*@keyring: Keyring to create a link in on success (or NULL).
函数原型:int key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct key * | key | |
| const void * | data | |
| size_t | datalen | |
| struct key * | keyring | |
| struct key * | authkey |
| 501 | struct assoc_array_edit * edit = NULL |
| 506 | Raw datalen 等于datalen |
| 509 | 如果preparse则 |
| 515 | 如果keyring则 |
| 516 | ret等于__key_link_lock(keyring, & index_key) |
| 521 | 如果ret小于0则转到:error_link_end |
| 527 | ret等于check(keyring, type of key , & Proposed payload , key) |
| 529 | 如果ret小于0则转到:error_link_end |
| 536 | error_link_end : |
| 537 | 如果keyring则Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called. |
| 540 | error : |
| 541 | 如果preparse则free_preparse( & prep) |
| 543 | 返回:ret |
| 名称 | 描述 |
|---|---|
| keyring_alloc | Allocate a keyring and link into the destination keyring. |
| keyctl_instantiate_key_common | 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. |
| request_key_auth_new | Create an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data. |
| add_new_master_key | Allocate a new fscrypt_master_key which contains the given secret, set it as* the payload of a new 'struct key' of type fscrypt, and link the 'struct key'* into the given keyring. Synchronized by fscrypt_add_key_mutex. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |