mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 15:03:53 +02:00
ima: do not copy measurement list to kdump kernel
Kdump kernel doesn't need IMA to do integrity measurement. Hence the measurement list in 1st kernel doesn't need to be copied to kdump kernel. Here skip allocating buffer for measurement list copying if loading kdump kernel. Then there won't be the later handling related to ima_kexec_buffer. Signed-off-by: Steven Chen <chenste@linux.microsoft.com> Tested-by: Baoquan He <bhe@redhat.com> Acked-by: Baoquan He <bhe@redhat.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
591683d394
commit
fe3aebf27d
|
@ -146,6 +146,9 @@ void ima_add_kexec_buffer(struct kimage *image)
|
|||
void *kexec_buffer = NULL;
|
||||
int ret;
|
||||
|
||||
if (image->type == KEXEC_TYPE_CRASH)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Reserve extra memory for measurements added during kexec.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user