patch-2.2.0-pre2 linux/net/sunrpc/svc.c
Next file: linux/net/sunrpc/xprt.c
Previous file: linux/net/sunrpc/sched.c
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Tue Dec 29 11:42:25 1998
-  Orig file: 
v2.2.0-pre1/linux/net/sunrpc/svc.c
-  Orig date: 
Fri Dec 19 10:54:10 1997
diff -u --recursive --new-file v2.2.0-pre1/linux/net/sunrpc/svc.c linux/net/sunrpc/svc.c
@@ -244,6 +244,12 @@
 	argp->buf += 5;
 	argp->len -= 5;
 
+	/* Used by nfsd to only allow the NULL procedure for amd. */
+	if (rqstp->rq_auth && !rqstp->rq_client && proc) {
+		auth_stat = rpc_autherr_badcred;
+		goto err_bad_auth;
+	}
+
 	/*
 	 * Decode auth data, and add verifier to reply buffer.
 	 * We do this before anything else in order to get a decent
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov