Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_init.c Create Date:2022-07-28 19:57:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_init

Proto:int __init ima_init(void)

Type:int

Parameter:Nothing

107  ima_tpm_chip = tpm_default_chip()
108  If Not ima_tpm_chip Then pr_info("No TPM chip found, activating TPM-bypass!\n")
111  rc = integrity_init_keyring(INTEGRITY_KEYRING_IMA)
112  If rc Then Return rc
115  rc = ima_init_crypto()
116  If rc Then Return rc
118  rc = ima_init_template()
119  If rc != 0 Then Return rc
123  ima_load_kexec_buffer()
125  rc = ima_init_digests()
126  If rc != 0 Then Return rc
128  rc = Add the boot aggregate to the IMA measurement list and extend* the PCR register.* Calculate the boot aggregate, a SHA1 over tpm registers 0-7,* assuming a TPM chip exists, and zeroes if the TPM chip does not* exist
129  If rc != 0 Then Return rc
132  ima_init_policy()
134  Return ima_fs_init()
Caller
NameDescribe
init_ima