Allow NULL rpcs on non-privileged ports at all times to work around broken

clients.

PR:		kern/3298
Submitted by:	Tor Egge <Tor.Egge@idi.ntnu.no>
This commit is contained in:
Doug Rabson 1997-04-30 09:51:37 +00:00
parent 9175ebbfd5
commit 6382d3ad84
3 changed files with 9 additions and 6 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_syscalls.c,v 1.20 1997/03/27 20:01:07 guido Exp $
* $Id: nfs_syscalls.c,v 1.21 1997/04/27 20:01:23 wollman Exp $
*/
#include <sys/param.h>
@ -607,7 +607,8 @@ nfssvc_nfsd(nsd, argp, p)
sin = mtod(nam, struct sockaddr_in *);
port = ntohs(sin->sin_port);
if (port >= IPPORT_RESERVED) {
if (port >= IPPORT_RESERVED &&
nd->nd_procnum != NFSPROC_NULL) {
nd->nd_procnum = NFSPROC_NOOP;
nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
cacherep = RC_DOIT;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_syscalls.c,v 1.20 1997/03/27 20:01:07 guido Exp $
* $Id: nfs_syscalls.c,v 1.21 1997/04/27 20:01:23 wollman Exp $
*/
#include <sys/param.h>
@ -607,7 +607,8 @@ nfssvc_nfsd(nsd, argp, p)
sin = mtod(nam, struct sockaddr_in *);
port = ntohs(sin->sin_port);
if (port >= IPPORT_RESERVED) {
if (port >= IPPORT_RESERVED &&
nd->nd_procnum != NFSPROC_NULL) {
nd->nd_procnum = NFSPROC_NOOP;
nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
cacherep = RC_DOIT;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
* $Id: nfs_syscalls.c,v 1.20 1997/03/27 20:01:07 guido Exp $
* $Id: nfs_syscalls.c,v 1.21 1997/04/27 20:01:23 wollman Exp $
*/
#include <sys/param.h>
@ -607,7 +607,8 @@ nfssvc_nfsd(nsd, argp, p)
sin = mtod(nam, struct sockaddr_in *);
port = ntohs(sin->sin_port);
if (port >= IPPORT_RESERVED) {
if (port >= IPPORT_RESERVED &&
nd->nd_procnum != NFSPROC_NULL) {
nd->nd_procnum = NFSPROC_NOOP;
nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
cacherep = RC_DOIT;