Function report |
Source Code:security\keys\keyring.c |
Create Date:2022-07-28 18:17:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Allocate a keyring and link into the destination keyring.
Proto:struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags, struct key_restriction *restrict_link, struct key *dest)
Type:struct key
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | description | |
| kuid_t | uid | |
| kgid_t | gid | |
| const struct cred * | cred | |
| key_perm_t | perm | |
| unsigned long | flags | |
| struct key_restriction * | restrict_link | |
| struct key * | dest |
| 534 | If ret < 0 Then |
| 540 | Return keyring |
| Name | Describe |
|---|---|
| get_user_register | Get or create a user register keyring. |
| 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. |
| install_thread_keyring_to_cred | Install a thread keyring to the given credentials struct if it didn't have* one already. This is allowed to overrun the quota.* Return: 0 if a thread keyring is now present; -errno on failure. |
| install_process_keyring_to_cred | Install a process keyring to the given credentials struct if it didn't have* one already. This is allowed to overrun the quota.* Return: 0 if a process keyring is now present; -errno on failure. |
| install_session_keyring_to_cred | Install the given keyring as the session keyring of the given credentials* struct, replacing the existing one if any. If the given keyring is NULL,* then install a new anonymous session keyring.*@cred can not be in use by any task yet. |
| join_session_keyring | Join the named keyring as the session keyring if possible else attempt to* create a new one of that name and join that |
| call_sbin_request_key | Request userspace finish the construction of a key* - execute "/sbin/request-key |
| key_create_persistent_register | Create the persistent keyring register for the current user namespace.* Called with the namespace's sem locked for writing. |
| key_create_persistent | Create the persistent keyring for the specified user.* Called with the namespace's sem locked for writing. |
| __integrity_init_keyring | |
| ima_mok_init | Allocate the IMA blacklist keyring |
| allocate_master_key_users_keyring | |
| fsverity_init_signature |
| 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 |