public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it
@ 2025-09-06 23:00 Eric Biggers
  2025-09-06 23:50 ` Jeff Layton
  2025-09-08 14:36 ` Chuck Lever
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Biggers @ 2025-09-06 23:00 UTC (permalink / raw)
  To: linux-nfs, Chuck Lever, Jeff Layton, Trond Myklebust,
	Anna Schumaker
  Cc: linux-crypto, NeilBrown, Olga Kornievskaia, Dai Ngo, Tom Talpey,
	Eric Biggers

Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it.  This
unblocks the eventual removal of the selection of CRYPTO from NFSD_V4,
which will no longer be needed by nfsd itself due to switching to the
crypto library functions.  But NFSD_V4 selects RPCSEC_GSS_KRB5, which
still needs CRYPTO.  It makes more sense for RPCSEC_GSS_KRB5 to select
CRYPTO itself, like most other kconfig options that need CRYPTO do.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
 net/sunrpc/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig
index 2d8b67dac7b5b..33aafdc8392e3 100644
--- a/net/sunrpc/Kconfig
+++ b/net/sunrpc/Kconfig
@@ -16,13 +16,14 @@ config SUNRPC_SWAP
 	bool
 	depends on SUNRPC
 
 config RPCSEC_GSS_KRB5
 	tristate "Secure RPC: Kerberos V mechanism"
-	depends on SUNRPC && CRYPTO
+	depends on SUNRPC
 	default y
 	select SUNRPC_GSS
+	select CRYPTO
 	select CRYPTO_SKCIPHER
 	select CRYPTO_HASH
 	help
 	  Choose Y here to enable Secure RPC using the Kerberos version 5
 	  GSS-API mechanism (RFC 1964).

base-commit: 4a0de50a44bb11ea67bb3ca961844b55ac57cf05
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it
  2025-09-06 23:00 [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it Eric Biggers
@ 2025-09-06 23:50 ` Jeff Layton
  2025-09-08 14:36 ` Chuck Lever
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Layton @ 2025-09-06 23:50 UTC (permalink / raw)
  To: Eric Biggers, linux-nfs, Chuck Lever, Trond Myklebust,
	Anna Schumaker
  Cc: linux-crypto, NeilBrown, Olga Kornievskaia, Dai Ngo, Tom Talpey

On Sat, 2025-09-06 at 16:00 -0700, Eric Biggers wrote:
> Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it.  This
> unblocks the eventual removal of the selection of CRYPTO from NFSD_V4,
> which will no longer be needed by nfsd itself due to switching to the
> crypto library functions.  But NFSD_V4 selects RPCSEC_GSS_KRB5, which
> still needs CRYPTO.  It makes more sense for RPCSEC_GSS_KRB5 to select
> CRYPTO itself, like most other kconfig options that need CRYPTO do.
> 
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
>  net/sunrpc/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig
> index 2d8b67dac7b5b..33aafdc8392e3 100644
> --- a/net/sunrpc/Kconfig
> +++ b/net/sunrpc/Kconfig
> @@ -16,13 +16,14 @@ config SUNRPC_SWAP
>  	bool
>  	depends on SUNRPC
>  
>  config RPCSEC_GSS_KRB5
>  	tristate "Secure RPC: Kerberos V mechanism"
> -	depends on SUNRPC && CRYPTO
> +	depends on SUNRPC
>  	default y
>  	select SUNRPC_GSS
> +	select CRYPTO
>  	select CRYPTO_SKCIPHER
>  	select CRYPTO_HASH
>  	help
>  	  Choose Y here to enable Secure RPC using the Kerberos version 5
>  	  GSS-API mechanism (RFC 1964).
> 
> base-commit: 4a0de50a44bb11ea67bb3ca961844b55ac57cf05

Acked-by: Jeff Layton <jlayton@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it
  2025-09-06 23:00 [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it Eric Biggers
  2025-09-06 23:50 ` Jeff Layton
@ 2025-09-08 14:36 ` Chuck Lever
  1 sibling, 0 replies; 3+ messages in thread
From: Chuck Lever @ 2025-09-08 14:36 UTC (permalink / raw)
  To: linux-nfs, Jeff Layton, Trond Myklebust, Anna Schumaker,
	Eric Biggers
  Cc: Chuck Lever, linux-crypto, NeilBrown, Olga Kornievskaia, Dai Ngo,
	Tom Talpey

From: Chuck Lever <chuck.lever@oracle.com>

On Sat, 06 Sep 2025 16:00:19 -0700, Eric Biggers wrote:
> Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it.  This
> unblocks the eventual removal of the selection of CRYPTO from NFSD_V4,
> which will no longer be needed by nfsd itself due to switching to the
> crypto library functions.  But NFSD_V4 selects RPCSEC_GSS_KRB5, which
> still needs CRYPTO.  It makes more sense for RPCSEC_GSS_KRB5 to select
> CRYPTO itself, like most other kconfig options that need CRYPTO do.
> 
> [...]

Applied to nfsd-testing, thanks!

[1/1] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it
      commit: b3560ad8e52b87cdbd858ec279429276695c1e48

--
Chuck Lever


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-08 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-06 23:00 [PATCH] SUNRPC: Make RPCSEC_GSS_KRB5 select CRYPTO instead of depending on it Eric Biggers
2025-09-06 23:50 ` Jeff Layton
2025-09-08 14:36 ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox