Function report |
Source Code:security\integrity\digsig.c |
Create Date:2022-07-28 19:56:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:integrity_init_keyring
Proto:int __init integrity_init_keyring(const unsigned int id)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const unsigned int | id |
| 125 | perm = KEY_POS_ALL & ~possessor can set key attributes | user permissions... | KEY_USR_READ | KEY_USR_SEARCH |
| 128 | If id == INTEGRITY_KEYRING_PLATFORM Then |
| 129 | restriction = NULL |
| 130 | Go to out |
| 133 | If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_INTEGRITY_TRUSTED_KEYRING) Then Return 0 |
| 136 | restriction = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 137 | If Not restriction Then Return -ENOMEM |
| 140 | check = restrict_link_to_ima |
| 141 | perm |= KEY_USR_WRITE |
| 143 | out : |
| 144 | Return __integrity_init_keyring(id, perm, restriction) |
| Name | Describe |
|---|---|
| platform_keyring_init | Create the trusted keyrings. |
| ima_init | |
| init_evm |
| 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 |