EVM: ensure trusted and encypted key symbols are available to EVM
authorJames Morris <jmorris@namei.org>
Tue, 9 Aug 2011 01:33:36 +0000 (11:33 +1000)
committerJames Morris <jmorris@namei.org>
Tue, 9 Aug 2011 01:33:36 +0000 (11:33 +1000)
Select trusted and encrypted keys if EVM is selected, to ensure
the requisite symbols are available.  Otherwise, these can be
selected as modules while EVM is static, leading to a kernel
build failure.

Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/evm/Kconfig

index 73f654099a4bd1456c8374e7571beb08052f5da5..444877d9239b0ca10bc6ca0497b23604f2f20a30 100644 (file)
@@ -1,9 +1,11 @@
 config EVM
        boolean "EVM support"
-       depends on SECURITY && KEYS && ENCRYPTED_KEYS
+       depends on SECURITY && KEYS
        select CRYPTO_HMAC
        select CRYPTO_MD5
        select CRYPTO_SHA1
+       select ENCRYPTED_KEYS
+       select TRUSTED_KEYS
        default n
        help
          EVM protects a file's security extended attributes against