summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_syscalls.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-06-13 22:19:36 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-06-13 22:19:36 +0000
commit32aa15e1a2824ec1c7a50b7ac042abe8e274a055 (patch)
tree4e69e765b6bc3a9dbbdf94f6363afdfe1ed054bf /sys/nfs/nfs_syscalls.c
parent861a9e713d14af49c11838f0bf3432f2fd339c32 (diff)
NFSD_NEEDAUTH and NFSD_AUTHFAIL are never set, so cull code that
depends on them being set. This should be the removal of the original return-to-userland-to-authenticate code that was apparently an unfinished experiment. ok thib@
Diffstat (limited to 'sys/nfs/nfs_syscalls.c')
-rw-r--r--sys/nfs/nfs_syscalls.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index 907551a7d59..5269b611f16 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_syscalls.c,v 1.64 2008/06/12 06:58:40 deraadt Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.65 2008/06/13 22:19:35 blambert Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
@@ -391,32 +391,7 @@ nfssvc_nfsd(nsd, argp, p)
else
nd->nd_nam = slp->ns_nam;
- /*
- * Check to see if authorization is needed.
- */
- if (nfsd->nfsd_flag & NFSD_NEEDAUTH) {
- nfsd->nfsd_flag &= ~NFSD_NEEDAUTH;
- nsd->nsd_haddr = mtod(nd->nd_nam,
- struct sockaddr_in *)->sin_addr.s_addr;
- nsd->nsd_authlen = nfsd->nfsd_authlen;
- nsd->nsd_verflen = nfsd->nfsd_verflen;
- if (!copyout(nfsd->nfsd_authstr,nsd->nsd_authstr,
- nfsd->nfsd_authlen) &&
- !copyout(nfsd->nfsd_verfstr, nsd->nsd_verfstr,
- nfsd->nfsd_verflen) &&
- !copyout((caddr_t)nsd, argp, sizeof (*nsd))) {
- return (ENEEDAUTH);
- }
- cacherep = RC_DROPIT;
- } else
- cacherep = nfsrv_getcache(nd, slp, &mreq);
-
- if (nfsd->nfsd_flag & NFSD_AUTHFAIL) {
- nfsd->nfsd_flag &= ~NFSD_AUTHFAIL;
- nd->nd_procnum = NFSPROC_NOOP;
- nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
- cacherep = RC_DOIT;
- }
+ cacherep = nfsrv_getcache(nd, slp, &mreq);
}
/*