Skip to content

Commit 6ea49c7

Browse files
committed
fix: support disabling module signature verification
Even though siderolabs/talos#11989 got completed, it missed a critical step to disable `CONFIG_MODULE_SIG_FORCE` as the issues states. This got missed and released, fixing the errata. Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent 6520ec4 commit 6ea49c7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

kernel/build/config-amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ CONFIG_ASM_MODVERSIONS=y
10081008
CONFIG_BASIC_MODVERSIONS=y
10091009
CONFIG_MODULE_SRCVERSION_ALL=y
10101010
CONFIG_MODULE_SIG=y
1011-
CONFIG_MODULE_SIG_FORCE=y
1011+
# CONFIG_MODULE_SIG_FORCE is not set
10121012
CONFIG_MODULE_SIG_ALL=y
10131013
# CONFIG_MODULE_SIG_SHA1 is not set
10141014
# CONFIG_MODULE_SIG_SHA256 is not set

kernel/build/config-arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ CONFIG_ASM_MODVERSIONS=y
949949
CONFIG_BASIC_MODVERSIONS=y
950950
CONFIG_MODULE_SRCVERSION_ALL=y
951951
CONFIG_MODULE_SIG=y
952-
CONFIG_MODULE_SIG_FORCE=y
952+
# CONFIG_MODULE_SIG_FORCE is not set
953953
CONFIG_MODULE_SIG_ALL=y
954954
# CONFIG_MODULE_SIG_SHA1 is not set
955955
# CONFIG_MODULE_SIG_SHA256 is not set

kernel/build/scripts/filter-hardened-check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'CONFIG_IOMMU_DEFAULT_DMA_STRICT', # performance impact https://github.com/siderolabs/talos/issues/9531
3737
'CONFIG_PROC_MEM_NO_FORCE', # might break some applications, so instead we will enforce in the kernel arg 'proc_mem.force_override=never' (https://github.com/a13xp0p0v/kernel-hardening-checker/pull/201)
3838
'CONFIG_GCC_PLUGIN_LATENT_ENTROPY', # doesn't seem very relevant, entropy is low quality, and not available in Clang, https://github.com/torvalds/linux/blob/37a93dd5c49b5fda807fd204edf2547c3493319c/scripts/gcc-plugins/Kconfig#L25-L33
39+
'CONFIG_MODULE_SIG_FORCE', # see https://github.com/siderolabs/talos/issues/11989
3940
}
4041

4142
"""

0 commit comments

Comments
 (0)