Re: [PATCH 02/10] ima: implement function to populate buffer at kexec execute

2023-07-11 Thread Tushar Sugandhi
Adding Eric to cc. On 7/7/23 06:00, Mimi Zohar wrote: Hi Tushar, On Mon, 2023-07-03 at 14:57 -0700, Tushar Sugandhi wrote: There is no existing IMA functionality to just populate the buffer at kexec execute with IMA measurements. The same function that copies the measurement list at kexec

Re: [PATCH 02/10] ima: implement function to populate buffer at kexec execute

2023-07-07 Thread Mimi Zohar
Hi Tushar, On Mon, 2023-07-03 at 14:57 -0700, Tushar Sugandhi wrote: > There is no existing IMA functionality to just populate the buffer at > kexec execute with IMA measurements. The same function that copies the measurement list at kexec 'load', could be re-used at kexec 'exec'. Why is a new

[PATCH 02/10] ima: implement function to populate buffer at kexec execute

2023-07-03 Thread Tushar Sugandhi
There is no existing IMA functionality to just populate the buffer at kexec execute with IMA measurements. Implement a function to iterate over ima_measurements and populate the ima_kexec_file buffer. After the loop, populate ima_khdr with buffer details (version, buffer size, number of