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

Mimi Zohar zohar at linux.ibm.com
Wed Mar 26 23:44:06 UTC 2025


> > 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();
> > }
> 



More information about the Linux-security-module-archive mailing list