]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
crypto: api - Fix Kconfig dependencies for FIPS
authorAlec Ari <alec@onelabs.com>
Tue, 4 Oct 2016 22:34:30 +0000 (19:34 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2016 03:03:40 +0000 (11:03 +0800)
Currently FIPS depends on MODULE_SIG, even if MODULES is disabled.
This change allows the enabling of FIPS without support for modules.

If module loading support is enabled, only then does
FIPS require MODULE_SIG.

Signed-off-by: Alec Ari <neotheuser@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index 84d71482bf080288d2c379b03dbb02894ba3b4c5..fd288053b1c585cbb65b357602601ddd7f90d168 100644 (file)
@@ -24,7 +24,7 @@ comment "Crypto core or helper"
 config CRYPTO_FIPS
        bool "FIPS 200 compliance"
        depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
-       depends on MODULE_SIG
+       depends on (MODULE_SIG || !MODULES)
        help
          This options enables the fips boot option which is
          required if you want to system to operate in a FIPS 200