]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - include/linux/nfs_xdr.h
nfs4.1: Minimal SP4_MACH_CRED implementation
authorWeston Andros Adamson <dros@netapp.com>
Tue, 13 Aug 2013 20:37:32 +0000 (16:37 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 5 Sep 2013 14:40:45 +0000 (10:40 -0400)
commit2031cd1af143f47dacacbb35efbef22f2fd079e6
treed5737cb0679b190fcfd583bb74768edfa032203e
parent92cb6c5be8134db6f7c38f25f6afd13e444cebaf
nfs4.1: Minimal SP4_MACH_CRED implementation

This is a minimal client side implementation of SP4_MACH_CRED.  It will
attempt to negotiate SP4_MACH_CRED iff the EXCHANGE_ID is using
krb5i or krb5p auth.  SP4_MACH_CRED will be used if the server supports the
minimal operations:

 BIND_CONN_TO_SESSION
 EXCHANGE_ID
 CREATE_SESSION
 DESTROY_SESSION
 DESTROY_CLIENTID

This patch only includes the EXCHANGE_ID negotiation code because
the client will already use the machine cred for these operations.

If the server doesn't support SP4_MACH_CRED or doesn't support the minimal
operations, the exchange id will be resent with SP4_NONE.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_fs_sb.h
include/linux/nfs_xdr.h