Skip to contentSkip to conversation

Secure user authentication for NFS using RPCSEC_GSS [6/6]

PATCH New Trond Myklebust 1 participant 1 message Jan 13, 2003

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Secure user authentication for NFS using RPCSEC_GSS [6/6]

The following patch provides minimal client support for the (mandatory) Kerberos V5 authentication mechanism under RPCSEC_GSS. See RFC2623 and RFC3010 for protocol details.

Only authentication is supported for the moment. Data integrity and/or data privacy (encryption) will be implemented at a later stage.

fs/Kconfig +15 -2
diff -u --recursive --new-file linux-2.5.56-06-auth_upcall2/fs/Kconfig linux-2.5.56-07-krb5/fs/Kconfig
@@ -1345,11 +1345,24 @@
 	default SUNRPC if NFS_V4=y
 	help
 	  Provides cryptographic authentication for NFS rpc requests.  To
-	  make this useful, you also need support for a gss-api mechanism
-	  (such as Kerberos).
+	  make this useful, you must also select at least one rpcsec_gss
+	  mechanism.
 	  Note: You should always select this option if you wish to use
 	  NFSv4.
 
+config RPCSEC_GSS_KRB5
+	tristate "Kerberos V mechanism for RPCSEC_GSS (EXPERIMENTAL)"
+	depends on SUNRPC_GSS && CRYPTO_DES && CRYPTO_MD5
+	default SUNRPC_GSS if NFS_V4=y
+	help
+	  Provides a gss-api mechanism based on Kerberos V5 (this is
+	  mandatory for RFC3010-compliant NFSv4 implementations).
+	  Requires a userspace daemon;
+		see http://www.citi.umich.edu/projects/nfsv4/.
+
+	  Note: If you select this option, please ensure that you also
+	  enable the MD5 and DES crypto ciphers.
+
 config LOCKD
 	tristate
 	default m if NFS_FS!=y && NFSD!=y && (NFS_FS=m || NFSD=m)
include/linux/sunrpc/gss_krb5.h +160 -0

160 lines not on this page · raw message

net/sunrpc/auth_gss/gss_krb5_crypto.c +168 -0

168 lines not on this page · raw message

net/sunrpc/auth_gss/gss_krb5_mech.c +251 -0

251 lines not on this page · raw message

net/sunrpc/auth_gss/gss_krb5_seal.c +214 -0

214 lines not on this page · raw message

net/sunrpc/auth_gss/gss_krb5_seqnum.c +88 -0

88 lines not on this page · raw message

net/sunrpc/auth_gss/gss_krb5_unseal.c +306 -0

306 lines not on this page · raw message

net/sunrpc/auth_gss/Makefile +5 -0
diff -u --recursive --new-file linux-2.5.56-06-auth_upcall2/net/sunrpc/auth_gss/Makefile linux-2.5.56-07-krb5/net/sunrpc/auth_gss/Makefile
@@ -9,3 +9,8 @@
 auth_rpcgss-objs := auth_gss.o gss_pseudoflavors.o gss_generic_token.o \
 	sunrpcgss_syms.o gss_mech_switch.o
 
+obj-$(CONFIG_RPCSEC_GSS_KRB5) += rpcsec_gss_krb5.o
+
+rpcsec_gss_krb5-objs := gss_krb5_mech.o gss_krb5_seal.o gss_krb5_unseal.o \
+	gss_krb5_crypto.o gss_krb5_seqnum.o
+