Function report |
Source Code:security\keys\keyring.c |
Create Date:2022-07-28 18:18:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:key_link - Link a key to a keyring*@keyring: The keyring to make the link in
Proto:int key_link(struct key *keyring, struct key *key)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct key * | keyring | |
| struct key * | key |
| 1437 | struct assoc_array_edit * edit = NULL |
| 1440 | kenter("{%d,%d}", key serial number , _read - get a refcount's value*@r: the refcount* Return: the refcount's value) |
| 1445 | ret = Lock keyring for link. |
| 1453 | kdebug("begun {%d,%d}", key serial number , _read - get a refcount's value*@r: the refcount* Return: the refcount's value) |
| 1460 | error_end : |
| 1461 | Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called. |
| 1462 | error : |
| 1463 | kleave(" = %d {%d,%d}", ret, key serial number , _read - get a refcount's value*@r: the refcount* Return: the refcount's value) |
| 1464 | Return ret |
| Name | Describe |
|---|---|
| keyctl_keyring_link | Create a link from a keyring to a key if there's no matching key in the* keyring, otherwise replace the link to the matching key with a link to the* new key.* The key must grant the caller Link permission and the the keyring must grant |
| keyctl_keyring_search | Search the specified keyring and any keyrings it links to for a matching* key |
| look_up_user_keyrings | Look up the user and user session keyrings for the current process's UID,* creating them if they don't exist. |
| call_sbin_request_key | Request userspace finish the construction of a key* - execute "/sbin/request-key |
| 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. |
| key_get_persistent | Get the persistent keyring for a specific UID and link it to the nominated* keyring. |
| 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 |