summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorAndy Adamson2014-06-09 21:33:20 +0200
committerTrond Myklebust2014-06-25 00:46:58 +0200
commit8445cd3528b21da77c41ad1372a944ef94d7516f (patch)
tree1f193e7df426b3c0e389a8043727e933877fa52e /net/sunrpc/auth.c
parentNFS check the return of nfs4_negotiate_security in nfs4_submount (diff)
downloadkernel-qcow2-linux-8445cd3528b21da77c41ad1372a944ef94d7516f.tar.gz
kernel-qcow2-linux-8445cd3528b21da77c41ad1372a944ef94d7516f.tar.xz
kernel-qcow2-linux-8445cd3528b21da77c41ad1372a944ef94d7516f.zip
NFS Return -EPERM if no supported or matching SECINFO flavor
Do not return RPC_AUTH_UNIX if SEINFO reply tests fail. This prevents an infinite loop of NFS4ERR_WRONGSEC for non RPC_AUTH_UNIX mounts. Without this patch, a mount with no sec= option to a server that does not include RPC_AUTH_UNIX in the SECINFO return can be presented with an attemtp to use RPC_AUTH_UNIX which will result in an NFS4ERR_WRONG_SEC which will prompt the SECINFO call which will again try RPC_AUTH_UNIX.... Signed-off-by: Andy Adamson <andros@netapp.com> Tested-By: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/auth.c')
0 files changed, 0 insertions, 0 deletions