evm: EVM_LOAD_X509 depends on EVM
Subsystems (3)
PATCH 1/1 evm: EVM_LOAD_X509 depends on EVM
The newly added EVM_LOAD_X509 code can be configured even if CONFIG_EVM is disabled, but that causes a link error:
security/built-in.o: In function `integrity_load_keys':
digsig_asymmetric.c:(.init.text+0x400): undefined reference to `evm_load_x509'
This adds a Kconfig dependency to ensure it is only enabled when CONFIG_EVM is set as well.
---
Found on yesterday's linux-next with ARM randconfig builds
security/integrity/evm/Kconfig +1 -1
@@ -44,7 +44,7 @@ config EVM_EXTRA_SMACK_XATTRS config EVM_LOAD_X509 bool "Load X509 certificate to the '.evm' trusted keyring" - depends on INTEGRITY_TRUSTED_KEYRING + depends on EVM && INTEGRITY_TRUSTED_KEYRING default n help Load X509 certificate to the '.evm' trusted keyring.
Quoted 11 lines · Arnd Bergmann
The newly added
EVM_LOAD_X509code can be configured even ifCONFIG_EVMis disabled, but that causes a link error:
security/built-in.o: In function `integrity_load_keys':
digsig_asymmetric.c:(.init.text+0x400): undefined reference to `evm_load_x509'This adds a
Kconfigdependency to ensure it is only enabled whenCONFIG_EVMis set as well.Signed-off-by Arnd Bergmann <[email protected]>Fixes 7f753c992343 ("evm: load x509 certificate from the kernel")
Thanks for the patch!
Mimi
Quoted 22 lines
---
Found on yesterday's linux-next with ARM randconfig buildssecurity/integrity/evm/Kconfig +1
-2@@ -44,7 +44,7 @@ config EVM_EXTRA_SMACK_XATTRS config EVM_LOAD_X509 bool "Load X509 certificate to the '.evm' trusted keyring" - depends on INTEGRITY_TRUSTED_KEYRING + depends on EVM && INTEGRITY_TRUSTED_KEYRING default n help Load X509 certificate to the '.evm' trusted keyring. --To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html