]> git.baikalelectronics.ru Git - kernel.git/commit
kexec, KEYS: make the code in bzImage64_verify_sig generic
authorCoiby Xu <coxu@redhat.com>
Thu, 14 Jul 2022 13:40:25 +0000 (21:40 +0800)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 15 Jul 2022 16:21:16 +0000 (12:21 -0400)
commit43ad2022ebe39488093b196bf3f5a01fa6ff8e70
treee36423f7902aa6e217396efaa0b4e67d5f495052
parent9de9bfb0f834939e7c72bfa2c5910177f9579376
kexec, KEYS: make the code in bzImage64_verify_sig generic

commit d685c0248521 ("kexec, KEYS: Make use of platform keyring for
signature verify") adds platform keyring support on x86 kexec but not
arm64.

The code in bzImage64_verify_sig uses the keys on the
.builtin_trusted_keys, .machine, if configured and enabled,
.secondary_trusted_keys, also if configured, and .platform keyrings
to verify the signed kernel image as PE file.

Cc: kexec@lists.infradead.org
Cc: keyrings@vger.kernel.org
Cc: linux-security-module@vger.kernel.org
Reviewed-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Coiby Xu <coxu@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
arch/x86/kernel/kexec-bzimage64.c
include/linux/kexec.h
kernel/kexec_file.c