Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:integrity_init_keyring

Proto:int __init integrity_init_keyring(const unsigned int id)

Type:int

Parameter:

TypeParameterName
const unsigned intid
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)
Caller
NameDescribe
platform_keyring_initCreate the trusted keyrings.
ima_init
init_evm