]> git.baikalelectronics.ru Git - kernel.git/commit
evm: EVM_LOAD_X509 depends on EVM
authorArnd Bergmann <arnd@arndb.de>
Fri, 27 Nov 2015 13:52:33 +0000 (14:52 +0100)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 15 Dec 2015 14:57:21 +0000 (09:57 -0500)
commit94c9f3fed110594a38f4305e304b12d527501824
tree8953d32bc5311a07fa9b82bfb6fa2e3f92475721
parent36cdce226513f772209b86fc03601b6c8c81136e
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: Arnd Bergmann <arnd@arndb.de>
Fixes: 6c57b3761694 ("evm: load x509 certificate from the kernel")
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/Kconfig