summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
commit86464aed71025541805e7b1515541aee89879e33 (patch)
treee01a457a4912a8553bc65524aa3125d51f29f810 /net/sunrpc/svc.c
parent88f99939ecc6a95a79614574cb7d95ffccfc3466 (diff)
Merge with Linux 2.2.1.
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 1d1c0a95e..2353c2e27 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -244,6 +244,12 @@ svc_process(struct svc_serv *serv, struct svc_rqst *rqstp)
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