linux-cip: Disable module signing when performing reproduciblity test
PATCH 1/1 linux-cip: Disable module signing when performing reproduciblity test
From: Jan Kiszka <[email protected]>
With the current cip config for x86 and 6.12, the kernel will generate a key pair for signing modules on the fly. This is inherently non-reproducible. Disable kernel module signing for now. It can re-enabled later on when Isar gained support for in-tree module signing with custom keys.
Closes #144
Signed-off-by Jan Kiszka <[email protected]>
--- kas/opt/reproducible.yml | 1 + recipes-kernel/linux/cip-kernel-config.inc | 4 ++++ recipes-kernel/linux/files/no-module-signing.cfg | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 recipes-kernel/linux/files/no-module-signing.cfg
kas/opt/reproducible.yml +1 -0
@@ -15,3 +15,4 @@ local_conf_header: reproducible-builds: | WIC_DEPLOY_PARTITIONS = "1" ISAR_USE_APT_SNAPSHOT = "1" + NO_MODULE_SIGNING = "1"
recipes-kernel/linux/cip-kernel-config.inc +4 -0
@@ -28,3 +28,7 @@ KERNEL_DEFCONFIG ?= "${@ \ KBUILD_DEPENDS:append = "${@ \ ', lzop, lz4' \ if bb.utils.to_boolean(d.getVar('USE_CIP_KERNEL_CONFIG')) else ''}" + +SRC_URI:append = " ${@ \ + 'file://no-module-signing.cfg' if bb.utils.to_boolean(d.getVar('NO_MODULE_SIGNING')) else '' \ + }"
recipes-kernel/linux/files/no-module-signing.cfg new file +2 -0
@@ -0,0 +1,2 @@ +# CONFIG_SECURITY_LOCKDOWN_LSM is not set +# CONFIG_MODULE_SIG is not set
Signature · 1 line
2.51.0