kexec: move KEXEC_SIG_FORCE from arch/x86 to arch
Subsystems (3)
PATCH 1/1 kexec: move KEXEC_SIG_FORCE from arch/x86 to arch
There is nothing x86-specific about KEXEC_SIG_FORCE
Signed-off-by Michal Suchanek <[email protected]>
--- arch/Kconfig | 7 +++++++ arch/x86/Kconfig | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-)
arch/Kconfig +7 -0
@@ -24,6 +24,13 @@ config KEXEC_ELF config HAVE_IMA_KEXEC bool +config KEXEC_SIG_FORCE + bool "Require a valid signature in kexec_file_load() syscall" + depends on KEXEC_SIG + help + This option makes kernel signature verification mandatory for + the kexec_file_load() syscall. + config SET_FS bool
arch/x86/Kconfig +0 -7
@@ -2032,13 +2032,6 @@ config KEXEC_SIG verification for the corresponding kernel image type being loaded in order for this to work. -config KEXEC_SIG_FORCE - bool "Require a valid signature in kexec_file_load() syscall" - depends on KEXEC_SIG - help - This option makes kernel signature verification mandatory for - the kexec_file_load() syscall. - config KEXEC_BZIMAGE_VERIFY_SIG bool "Enable bzImage signature verification support" depends on KEXEC_SIG
Signature · 1 line
2.31.1
Quoted 31 lines · Michal Suchanek
There is nothing x86-specific about
KEXEC_SIG_FORCESigned-off-by Michal Suchanek <[email protected]>--- arch/Kconfig | 7 +++++++ arch/x86/Kconfig | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-)arch/Kconfig +7
-0@@ -24,6 +24,13 @@ config KEXEC_ELF config HAVE_IMA_KEXEC bool +config KEXEC_SIG_FORCE + bool "Require a valid signature in kexec_file_load() syscall" + depends on KEXEC_SIG + help + This option makes kernel signature verification mandatory for + the kexec_file_load() syscall. + config SET_FS boolarch/x86/Kconfig +0
-0
arch/x86/Kconfig config KEXEC_SIG · line 2041
Quoted 10 lines
arch/x86/Kconfig +0
-7@@ -2032,13 +2032,6 @@ config KEXEC_SIG verification for the corresponding kernel image type being loaded in order for this to work. -config KEXEC_SIG_FORCE - bool "Require a valid signature in kexec_file_load() syscall" - depends on KEXEC_SIG - help - This option makes kernel signature verification mandatory for - the kexec_file_load() syscall. -
This means it is no longer folded under KEXEC_SIG in menuconfig, which makes it harder to find. I would prefer seeing KEXEC_SIG (and KEXEC_SIG_FORCE) moved out of the per-arch Kconfig files into a common location, and then arch Kconfig can add something like:
select ARCH_SUPPORTS_KEXEC
Quoted 6 lines
arch/x86/Kconfig +0
-0config KEXEC_BZIMAGE_VERIFY_SIG bool "Enable bzImage signature verification support" depends on KEXEC_SIGSignature · 1 line
2.31.1
Signature · 1 line
Kees Cook