aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-03-16 15:56:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-03-29 15:45:09 -0400
commitc4eafe1135809c2b35b873a395af8f3a86a3ee98 (patch)
tree8cf6ca086a511c431ec05c7b48b61efb9858d1a5 /fs
parent9a744ba3983698307a7690541c00549ac7edf316 (diff)
NFS: Try AUTH_UNIX when PUTROOTFH gets NFS4ERR_WRONGSEC
Most NFSv4 servers implement AUTH_UNIX, and administrators will prefer this over AUTH_NULL. It is harmless for our client to try this flavor in addition to the flavors mandated by RFC 3530/5661. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index dd3a43792df0..a8e6d802383b 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2531,6 +2531,7 @@ static int nfs4_find_root_sec(struct nfs_server *server, struct nfs_fh *fhandle,
2531 RPC_AUTH_GSS_KRB5P, 2531 RPC_AUTH_GSS_KRB5P,
2532 RPC_AUTH_GSS_KRB5I, 2532 RPC_AUTH_GSS_KRB5I,
2533 RPC_AUTH_GSS_KRB5, 2533 RPC_AUTH_GSS_KRB5,
2534 RPC_AUTH_UNIX, /* courtesy */
2534 RPC_AUTH_NULL, 2535 RPC_AUTH_NULL,
2535 }; 2536 };
2536 int status = -EPERM; 2537 int status = -EPERM;