summaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2011-01-06 03:04:33 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-01-06 20:46:24 +0100
commitece0de633c4d9106c39ea9f0db1638c42ead2541 (patch)
tree45b4ac51b346486a328390517aa4139ba2f30eb2 /fs/nfs/callback.c
parentNFS refactor nfs_find_client and reference client across callback processing (diff)
downloadlinux-ece0de633c4d9106c39ea9f0db1638c42ead2541.tar.xz
linux-ece0de633c4d9106c39ea9f0db1638c42ead2541.zip
NFS RPC_AUTH_GSS unsupported on v4.1 back channel
Signed-off-by: Andy Adamson <andros@netapp.com> Acked-by: Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to '')
-rw-r--r--fs/nfs/callback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index 15677e7bede5..753a9e315518 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -365,6 +365,9 @@ static int check_gss_callback_principal(struct nfs_client *clp,
struct rpc_clnt *r = clp->cl_rpcclient;
char *p = svc_gss_principal(rqstp);
+ /* No RPC_AUTH_GSS on NFSv4.1 back channel yet */
+ if (clp->cl_minorversion != 0)
+ return SVC_DROP;
/*
* It might just be a normal user principal, in which case
* userspace won't bother to tell us the name at all.