Function report |
Source Code:security\keys\key.c |
Create Date:2022-07-28 18:15:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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).
Proto:int key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If preparse Then |
515 | If keyring Then |
516 | ret = __key_link_lock(keyring, & index_key) |
521 | If ret < 0 Then Go to error_link_end |
527 | ret = check(keyring, type of key , & Proposed payload , key) |
529 | If ret < 0 Then Go to error_link_end |
536 | error_link_end : |
537 | If keyring Then Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called. |
540 | error : |
541 | If preparse Then free_preparse( & prep) |
543 | Return ret |
Name | Describe |
---|---|
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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |