]> www.infradead.org Git - users/willy/linux.git/commit
ima: Support platform keyring for kernel appraisal
authorNayna Jain <nayna@linux.ibm.com>
Sat, 8 Dec 2018 20:27:05 +0000 (01:57 +0530)
committerMimi Zohar <zohar@linux.ibm.com>
Sun, 9 Dec 2018 18:17:16 +0000 (13:17 -0500)
commit6cb1d5f9b5ac0dbbf695d04a2d61a150f64df910
treeff825affb4108760b049802339cff53f81866e7e
parentf677fb08ea95ceecc1fbf68b3feeff4163cbba1f
ima: Support platform keyring for kernel appraisal

On secure boot enabled systems, the bootloader verifies the kernel
image and possibly the initramfs signatures based on a set of keys. A
soft reboot(kexec) of the system, with the same kernel image and
initramfs, requires access to the original keys to verify the
signatures.

This patch allows IMA-appraisal access to those original keys, now
loaded on the platform keyring, needed for verifying the kernel image
and initramfs signatures.

Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_appraise.c