]> git.baikalelectronics.ru Git - kernel.git/commit
kexec, KEYS, s390: Make use of built-in and secondary keyring for signature verification
authorMichal Suchanek <msuchanek@suse.de>
Thu, 14 Jul 2022 13:40:27 +0000 (21:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:23 +0000 (14:24 +0200)
commit81590b524b68819f6f75bf6f842b2175c6fa52fc
treec497e0b6ab5a06869eb28ab48242040bbbcd259e
parent6036df2c9c937d6c53cf1ec8cc36c7a4a687c0b2
kexec, KEYS, s390: Make use of built-in and secondary keyring for signature verification

[ Upstream commit a47ec778d0917af2ddf7785a4c9011fdadea53a0 ]

commit 2eafec7364f3 ("s390/kexec_file: Signature verification prototype")
adds support for KEXEC_SIG verification with keys from platform keyring
but the built-in keys and secondary keyring are not used.

Add support for the built-in keys and secondary keyring as x86 does.

Fixes: 2eafec7364f3 ("s390/kexec_file: Signature verification prototype")
Cc: stable@vger.kernel.org
Cc: Philipp Rudo <prudo@linux.ibm.com>
Cc: kexec@lists.infradead.org
Cc: keyrings@vger.kernel.org
Cc: linux-security-module@vger.kernel.org
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: "Lee, Chun-Yi" <jlee@suse.com>
Acked-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Coiby Xu <coxu@redhat.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/machine_kexec_file.c