Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Restore the measurement list from the previous kernel.

Proto:void ima_load_kexec_buffer(void)

Type:void

Parameter:Nothing

142  void * kexec_buffer = NULL
143  kexec_buffer_size = 0
146  rc = ima_get_kexec_buffer( & kexec_buffer, & kexec_buffer_size)
148  Case rc == 0
149  rc = Restore the serialized binary measurement list without extending PCRs.
151  If rc != 0 Then pr_err("Failed to restore the measurement list: %d\n", rc)
155  ima_free_kexec_buffer()
156  Break
157  Case rc == -Operation is not supported
158  pr_debug("Restoring the measurement list not supported\n")
159  Break
160  Case rc == -ENOENT
161  pr_debug("No measurement list to restore\n")
162  Break
163  Default
164  pr_debug("Error restoring the measurement list: %d\n", rc)