Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Alec Ari <alec@onelabs.com>
To: linux-crypto@vger.kernel.org
Subject: [PATCH] Fix Kconfig dependencies for FIPS
Date: Tue, 04 Oct 2016 19:34:30 -0300	[thread overview]
Message-ID: <07ccbb0be0cfb824a5ee1c03eeca8f36@onelabs.com> (raw)

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>
---
  crypto/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index 84d7148..fd28805 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -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
-- 
2.7.3

             reply	other threads:[~2016-10-04 22:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 22:34 Alec Ari [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-15 22:41 [PATCH] Fix Kconfig dependencies for FIPS NTU
2016-09-15 22:45 ` NTU
2016-09-22  9:32 ` Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07ccbb0be0cfb824a5ee1c03eeca8f36@onelabs.com \
    --to=alec@onelabs.com \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox