Adding cmldine args measure to ima

Prakhar Srivastava
2019-03-22T17:27:16Z

Hi,

Currently Kexec (kexec_file_load) code path does not measure the cmdline
arguments passed to the next kernel.The boot_aggregate won't change since
the EFI loader hasn't been triggered. Attesting the same in K2 has no impact.
Adding the cmdline measurement will add some attestable criteria.

To account for the cmdline passed, we are looking at using IMA to measure and
pass the buffer so that it can be attested.

Do you have any alternate solutions/concerns with this approach?

Thanks,
Prakhar Srivastava