提交 05d3884b 编写于 作者: A Arnd Bergmann 提交者: Mimi Zohar

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.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Fixes: 2ce523eb ("evm: load x509 certificate from the kernel")
Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
上级 523b74b1
...@@ -44,7 +44,7 @@ config EVM_EXTRA_SMACK_XATTRS ...@@ -44,7 +44,7 @@ config EVM_EXTRA_SMACK_XATTRS
config EVM_LOAD_X509 config EVM_LOAD_X509
bool "Load an X509 certificate onto the '.evm' trusted keyring" bool "Load an X509 certificate onto the '.evm' trusted keyring"
depends on INTEGRITY_TRUSTED_KEYRING depends on EVM && INTEGRITY_TRUSTED_KEYRING
default n default n
help help
Load an X509 certificate onto the '.evm' trusted keyring. Load an X509 certificate onto the '.evm' trusted keyring.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册