Secure user authentication for NFS using RPCSEC_GSS [6/6]
Subsystems (4)
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
@@ -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
@@ -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 +