Function report |
Source Code:security\keys\request_key.c |
Create Date:2022-07-28 18:23:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Commence key construction.
Proto:static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags)
Type:struct key
Parameter:
Type | Parameter | Name |
---|---|---|
struct keyring_search_context * | ctx | |
const char * | callout_info | |
size_t | callout_len | |
void * | aux | |
struct key * | dest_keyring | |
unsigned long | flags |
484 | kenter("") |
486 | If type == key_type_keyring Then Return ERR_PTR( - EPERM) |
489 | ret = Get the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release. |
493 | user = Get the key quota record for a user, allocating a new record if one doesn't* already exist. |
494 | If Not user Then |
496 | Go to error_put_dest_keyring |
502 | If ret == 0 Then |
503 | ret = Call out to userspace for key construction.* Program failure is ignored in favour of key status. |
505 | If ret < 0 Then |
506 | kdebug("cons failed") |
507 | Go to construction_failed |
509 | Else if ret == -EINPROGRESS Then |
510 | ret = 0 |
511 | Else |
512 | Go to error_put_dest_keyring |
516 | kleave(" = key %d", key_serial(key)) |
517 | Return key |
519 | construction_failed : |
522 | error_put_dest_keyring : |
524 | error : |
Name | Describe |
---|---|
request_key_and_link | quest_key_and_link - Request a key and cache it in a keyring.*@type: The type of key we want.*@description: The searchable description of the key.*@domain_tag: The domain in which the key operates. |
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 |