diff options
author | Philipp Rudo <prudo@linux.ibm.com> | 2019-02-26 10:50:39 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-04-29 10:44:01 +0200 |
commit | e23a8020ce4e094e10d717d39a8ce799243bf8c1 (patch) | |
tree | aa5253ea9daa7ccacaa018e72161e773ee4a2ac5 /arch/s390/kernel/kexec_image.c | |
parent | 653beba24d4cd281b078eab48c9bce956939061c (diff) | |
download | linux-stable-e23a8020ce4e094e10d717d39a8ce799243bf8c1.tar.gz linux-stable-e23a8020ce4e094e10d717d39a8ce799243bf8c1.tar.bz2 linux-stable-e23a8020ce4e094e10d717d39a8ce799243bf8c1.zip |
s390/kexec_file: Signature verification prototype
Add kernel signature verification to kexec_file. The verification is based
on module signature verification and works with kernel images signed via
scripts/sign-file.
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/kexec_image.c')
-rw-r--r-- | arch/s390/kernel/kexec_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kernel/kexec_image.c b/arch/s390/kernel/kexec_image.c index 7281540605b7..c378bbac5b35 100644 --- a/arch/s390/kernel/kexec_image.c +++ b/arch/s390/kernel/kexec_image.c @@ -54,4 +54,7 @@ static int s390_image_probe(const char *buf, unsigned long len) const struct kexec_file_ops s390_kexec_image_ops = { .probe = s390_image_probe, .load = s390_image_load, +#ifdef CONFIG_KEXEC_VERIFY_SIG + .verify_sig = s390_verify_sig, +#endif /* CONFIG_KEXEC_VERIFY_SIG */ }; |