diff mbox

[PATCH_V5,09/11] NFS RPC_AUTH_GSS unsupported on v4.1 back channel

Message ID 1292879088-7821-10-git-send-email-andros@netapp.com (mailing list archive)
State Superseded, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

Andy Adamson Dec. 20, 2010, 9:04 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index 541be39..4a9c517 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -368,6 +368,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_DENIED;
 	/*
 	 * It might just be a normal user principal, in which case
 	 * userspace won't bother to tell us the name at all.