]> 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>
Thu, 25 Aug 2022 09:18:11 +0000 (11:18 +0200)
commitb316aab7e12e4bfb6a7aa31c162b24a07bc2717d
tree434c79063a92d1e024f2d738849a01d785a38576
parentceb8a437be964dcb0b78c0dfb4928b4f78c3613a
kexec, KEYS, s390: Make use of built-in and secondary keyring for signature verification

commit a47ec778d0917af2ddf7785a4c9011fdadea53a0 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/machine_kexec_file.c