From: Andy Adamson Date: Thu, 6 Jan 2011 02:04:33 +0000 (+0000) Subject: NFS RPC_AUTH_GSS unsupported on v4.1 back channel X-Git-Tag: firefly_0821_release~7613^2~3053^2~24 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ece0de633c4d9106c39ea9f0db1638c42ead2541;p=firefly-linux-kernel-4.4.55.git NFS RPC_AUTH_GSS unsupported on v4.1 back channel Signed-off-by: Andy Adamson Acked-by: Bruce Fields Signed-off-by: Trond Myklebust --- 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.