KEXEC: Call ima_kexec_cmdline to measure the boot command line args
authorPrakhar Srivastava <prsriva02@gmail.com>
Mon, 24 Jun 2019 06:23:31 +0000 (23:23 -0700)
committerMimi Zohar <zohar@linux.ibm.com>
Sun, 30 Jun 2019 21:54:39 +0000 (17:54 -0400)
commit6a31fcd4cff84490bf5ac11dbeedfdca5b38b39a
treec5630d65a53dd147534273f1c5b8520670086f3b
parent86b4da8c0e7fcb6c217c604efcd9438ad55dd055
KEXEC: Call ima_kexec_cmdline to measure the boot command line args

During soft reboot(kexec_file_load) boot command line
arguments are not measured.

Call ima hook ima_kexec_cmdline to measure the boot command line
arguments into IMA measurement list.

- call ima_kexec_cmdline from kexec_file_load.
- move the call ima_add_kexec_buffer after the cmdline
args have been measured.

Signed-off-by: Prakhar Srivastava <prsriva02@gmail.com>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
kernel/kexec_file.c