-
- Downloads
kexec_file: split KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCE
This is a preparatory patch for kexec_file_load() lockdown. A locked down kernel needs to prevent unsigned kernel images from being loaded with kexec_file_load(). Currently, the only way to force the signature verification is compiling with KEXEC_VERIFY_SIG. This prevents loading usigned images even when the kernel is not locked down at runtime. This patch splits KEXEC_VERIFY_SIG into KEXEC_SIG and KEXEC_SIG_FORCE. Analogous to the MODULE_SIG and MODULE_SIG_FORCE for modules, KEXEC_SIG turns on the signature verification but allows unsigned images to be loaded. KEXEC_SIG_FORCE disallows images without a valid signature. Signed-off-by:Jiri Bohac <jbohac@suse.cz> Signed-off-by:
David Howells <dhowells@redhat.com> Signed-off-by:
Matthew Garrett <mjg59@google.com> cc: kexec@lists.infradead.org Signed-off-by:
James Morris <jmorris@namei.org>
Showing
- arch/arm64/Kconfig 3 additions, 3 deletionsarch/arm64/Kconfig
- arch/s390/Kconfig 1 addition, 1 deletionarch/s390/Kconfig
- arch/s390/configs/debug_defconfig 1 addition, 1 deletionarch/s390/configs/debug_defconfig
- arch/s390/configs/defconfig 1 addition, 1 deletionarch/s390/configs/defconfig
- arch/s390/configs/performance_defconfig 1 addition, 1 deletionarch/s390/configs/performance_defconfig
- arch/s390/kernel/kexec_elf.c 2 additions, 2 deletionsarch/s390/kernel/kexec_elf.c
- arch/s390/kernel/kexec_image.c 2 additions, 2 deletionsarch/s390/kernel/kexec_image.c
- arch/s390/kernel/machine_kexec_file.c 2 additions, 2 deletionsarch/s390/kernel/machine_kexec_file.c
- arch/x86/Kconfig 15 additions, 5 deletionsarch/x86/Kconfig
- arch/x86/kernel/ima_arch.c 2 additions, 2 deletionsarch/x86/kernel/ima_arch.c
- crypto/asymmetric_keys/verify_pefile.c 3 additions, 1 deletioncrypto/asymmetric_keys/verify_pefile.c
- include/linux/kexec.h 2 additions, 2 deletionsinclude/linux/kexec.h
- kernel/kexec_file.c 51 additions, 9 deletionskernel/kexec_file.c
- security/integrity/ima/Kconfig 1 addition, 1 deletionsecurity/integrity/ima/Kconfig
- security/integrity/ima/ima_main.c 1 addition, 1 deletionsecurity/integrity/ima/ima_main.c
Loading
Please register or sign in to comment