Adding cmldine args measure to ima

From: Prakhar Srivastava
Date: Fri Mar 22 2019 - 13:27:16 EST


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