Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-28 Thread Lakshmi Ramasubramanian
On 8/27/20 6:23 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: +/** + * ima_get_kexec_buffer - get IMA buffer from the previous kernel + * @addr: On successful return, set to point to the buffer contents. + * @size: On successful return, set to the buffer size. +

Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-28 Thread Lakshmi Ramasubramanian
On 8/27/20 4:35 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: The functions ima_get_kexec_buffer() and ima_free_kexec_buffer() that handle carrying forward the IMA measurement logs on kexec for powerpc do not have architecture specific code, but they are currently defined

Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-27 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > +/** > + * ima_get_kexec_buffer - get IMA buffer from the previous kernel > + * @addr:On successful return, set to point to the buffer contents. > + * @size:On successful return, set to the buffer size. > + * > + * Return: 0 on success, negative errno

Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-27 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > The functions ima_get_kexec_buffer() and ima_free_kexec_buffer() that > handle carrying forward the IMA measurement logs on kexec for powerpc > do not have architecture specific code, but they are currently defined > for powerpc only. > > Move these functions

[PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-19 Thread Lakshmi Ramasubramanian
The functions ima_get_kexec_buffer() and ima_free_kexec_buffer() that handle carrying forward the IMA measurement logs on kexec for powerpc do not have architecture specific code, but they are currently defined for powerpc only. Move these functions to IMA subsystem so that it can be used for