From 1e3f8ed199533efd432f3a5cce8b91366d91a633 Mon Sep 17 00:00:00 2001 From: Mikhail Malyshev Date: Fri, 6 Nov 2026 14:12:41 +0000 Subject: [PATCH] configs: drop IMA and EVM from every EVE flavour EVE does not use the Integrity Measurement Architecture: it loads no IMA policy, puts no ima_* parameter on the kernel command line, and nothing in the rootfs reads the measurement list. core and rt never enabled it; hwe and ai inherited CONFIG_IMA=y from the Ubuntu HWE derivation. IMA is not idle there either. On a Secure Boot host IMA_ARCH_POLICY installs arch rules that measure every module and kexec kernel load into PCR 10, and turns on kexec signature enforcement through set_kexec_sig_enforced(). EVM goes with it. Its verdict on a file's security xattrs is consumed by IMA appraisal, and it needs an evm-key that EVE never loads, so without IMA it protects nothing. eve-hwe_defconfig is regenerated with savedefconfig, as in commit 92df24b15f57 ("configs: drop CONFIG_XEN from the EVE defconfigs"). TCG_TPM, TCG_TIS, TCG_CRB, ENCRYPTED_KEYS and CRYPTO_SHA1 were =y only through IMA's and EVM's select; they stay =y, and savedefconfig now lists them explicitly. Beyond that, the resolved hwe and ai .config loses only IMA_* and EVM_* symbols. core and rt resolve to an identical .config. common.fragment pins both off, so a future re-derivation from Ubuntu cannot bring them back on any flavour. Signed-off-by: Mikhail Malyshev --- arch/x86/configs/common.fragment | 8 ++++++++ arch/x86/configs/eve-hwe_defconfig | 14 +++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/x86/configs/common.fragment b/arch/x86/configs/common.fragment index 7b86f1f5ca92..03eacda4c2f7 100644 --- a/arch/x86/configs/common.fragment +++ b/arch/x86/configs/common.fragment @@ -77,6 +77,14 @@ CONFIG_SYSTEM_REVOCATION_LIST=y # Was commit e76c6e90a73f. # CONFIG_BPF_KPROBE_OVERRIDE is not set +# No IMA on any flavour. EVE loads no IMA policy and nothing reads the +# measurement list, yet on a Secure Boot host IMA_ARCH_POLICY still installs +# rules that measure every module and kexec load into PCR 10. core and rt +# never enabled it; hwe and ai inherited it from the Ubuntu derivation. EVM +# only protects the xattrs IMA appraisal checks, so it goes with it. +# CONFIG_IMA is not set +# CONFIG_EVM is not set + # Hardware/driver exclusions. # INTEL_PCH_THERMAL: disabled, honouring ef7ccc4d151c on the 6.12 branch # which turned this driver off deliberately. Was commit bf841829cf73. diff --git a/arch/x86/configs/eve-hwe_defconfig b/arch/x86/configs/eve-hwe_defconfig index 2c3d5816d252..98233287afd9 100644 --- a/arch/x86/configs/eve-hwe_defconfig +++ b/arch/x86/configs/eve-hwe_defconfig @@ -2243,6 +2243,8 @@ CONFIG_APPLICOM=m CONFIG_MWAVE=m CONFIG_HPET=y CONFIG_HANGCHECK_TIMER=m +CONFIG_TCG_TPM=y +CONFIG_TCG_TIS=y CONFIG_TCG_TIS_SPI=m CONFIG_TCG_TIS_SPI_CR50=y CONFIG_TCG_TIS_I2C=m @@ -2253,6 +2255,7 @@ CONFIG_TCG_TIS_I2C_NUVOTON=m CONFIG_TCG_NSC=m CONFIG_TCG_ATMEL=m CONFIG_TCG_INFINEON=m +CONFIG_TCG_CRB=y CONFIG_TCG_VTPM_PROXY=m CONFIG_TCG_SVSM=m CONFIG_TCG_TIS_ST33ZP24_I2C=m @@ -6135,6 +6138,7 @@ CONFIG_KEYS_REQUEST_CACHE=y CONFIG_PERSISTENT_KEYRINGS=y CONFIG_BIG_KEYS=y CONFIG_TRUSTED_KEYS=y +CONFIG_ENCRYPTED_KEYS=y CONFIG_USER_DECRYPTED_DATA=y CONFIG_KEY_DH_OPERATIONS=y CONFIG_KEY_NOTIFICATIONS=y @@ -6161,15 +6165,6 @@ CONFIG_INTEGRITY_SIGNATURE=y CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y CONFIG_INTEGRITY_PLATFORM_KEYRING=y CONFIG_INTEGRITY_MACHINE_KEYRING=y -CONFIG_IMA=y -CONFIG_IMA_KEXEC=y -CONFIG_IMA_DEFAULT_HASH_SHA256=y -CONFIG_IMA_APPRAISE=y -CONFIG_IMA_ARCH_POLICY=y -CONFIG_IMA_APPRAISE_MODSIG=y -CONFIG_EVM=y -CONFIG_EVM_EXTRA_SMACK_XATTRS=y -CONFIG_EVM_ADD_XATTRS=y CONFIG_DEFAULT_SECURITY_APPARMOR=y CONFIG_LSM="landlock,lockdown,yama,integrity,apparmor" CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y @@ -6195,6 +6190,7 @@ CONFIG_CRYPTO_GCM=y CONFIG_CRYPTO_SEQIV=y CONFIG_CRYPTO_MD4=m CONFIG_CRYPTO_RMD160=m +CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_SM3_GENERIC=m CONFIG_CRYPTO_WP512=m CONFIG_CRYPTO_XCBC=m