Lakshmi Ramasubramanian <[email protected]> writes:
> The fields ima_buffer_addr and ima_buffer_size in "struct kimage_arch" > for powerpc are used to carry forward the IMA measurement list across > kexec system call. These fields are not architecture specific, but are > currently limited to powerpc. > > arch_ima_add_kexec_buffer() defined in "arch/powerpc/kexec/ima.c" > sets ima_buffer_addr and ima_buffer_size for the kexec system call. > This function does not have architecture specific code, but is > currently limited to powerpc. > > Move ima_buffer_addr and ima_buffer_size to "struct kimage". > Set ima_buffer_addr and ima_buffer_size in ima_add_kexec_buffer() > in security/integrity/ima/ima_kexec.c. > > Co-developed-by: Prakhar Srivastava <[email protected]> > Signed-off-by: Prakhar Srivastava <[email protected]> > Signed-off-by: Lakshmi Ramasubramanian <[email protected]> > Suggested-by: Will Deacon <[email protected]> > --- > arch/powerpc/include/asm/ima.h | 3 --- > arch/powerpc/include/asm/kexec.h | 5 ----- > arch/powerpc/kexec/ima.c | 29 ++++++----------------------- > include/linux/kexec.h | 3 +++ > security/integrity/ima/ima_kexec.c | 8 ++------ > 5 files changed, 11 insertions(+), 37 deletions(-) Reviewed-by: Thiago Jung Bauermann <[email protected]> -- Thiago Jung Bauermann IBM Linux Technology Center

