evm: enable key retention service automatically
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 28 Feb 2014 12:18:09 +0000 (14:18 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Mar 2014 17:15:49 +0000 (12:15 -0500)
If keys are not enabled, EVM is not visible in the configuration menu.
It may be difficult to figure out what to do unless you really know.
Other subsystems as NFS, CIFS select keys automatically. This patch does
the same.

This patch also removes '(TRUSTED_KEYS=y || TRUSTED_KEYS=n)' dependency,
which is unnecessary. EVM does not depend on trusted keys, but on
encrypted keys. evm.h provides compile time dependency.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/Kconfig

index 5aa9103..d35b491 100644 (file)
@@ -1,9 +1,10 @@
 config EVM
        boolean "EVM support"
-       depends on SECURITY && KEYS && (TRUSTED_KEYS=y || TRUSTED_KEYS=n)
+       depends on SECURITY
+       select KEYS
+       select ENCRYPTED_KEYS
        select CRYPTO_HMAC
        select CRYPTO_SHA1
-       select ENCRYPTED_KEYS
        default n
        help
          EVM protects a file's security extended attributes against