Re: [PATCH v10 6/8] ima: kexec: move IMA log copy from kexec load to execute

From: Mimi Zohar
Date: Wed Mar 26 2025 - 19:44:50 EST



> > Hmm, it's easier, while maybe not good. We should not repeatedly
> > introduce similar things into codes. Here, it's similar as
> > what kexec_apply_relocations() and arch_kexec_apply_relocations() are
> > doing.
> >
> > int machine_kexec_post_load(struct kimage *image)

(As discussed) just as kexec_apply_relocation calls
arch_kexec_apply_relocations(). Name this function kexec_post_load() and call
machine_kexec_post_load().

Mimi

> > {
> > #ifdef CONFIG_IMA_KEXEC
> > ima_kexec_post_load(image);
> > #endif
> > return arch_machine_kexec_post_load();
> > }
>