aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/kexec.h
diff options
context:
space:
mode:
authorPhilipp Rudo <prudo@linux.ibm.com>2019-02-26 10:50:39 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-04-29 10:44:01 +0200
commite23a8020ce4e094e10d717d39a8ce799243bf8c1 (patch)
treeaa5253ea9daa7ccacaa018e72161e773ee4a2ac5 /arch/s390/include/asm/kexec.h
parents390/kexec_file: Load new kernel to absolute 0 (diff)
downloadlinux-dev-e23a8020ce4e094e10d717d39a8ce799243bf8c1.tar.xz
linux-dev-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/include/asm/kexec.h')
-rw-r--r--arch/s390/include/asm/kexec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kexec.h b/arch/s390/include/asm/kexec.h
index 9ec077b0fb4d..59026899e766 100644
--- a/arch/s390/include/asm/kexec.h
+++ b/arch/s390/include/asm/kexec.h
@@ -65,6 +65,7 @@ struct s390_load_data {
size_t memsz;
};
+int s390_verify_sig(const char *kernel, unsigned long kernel_len);
void *kexec_file_add_components(struct kimage *image,
int (*add_kernel)(struct kimage *image,
struct s390_load_data *data));