diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-02-24 22:01:48 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-02-24 22:01:48 +0000 |
commit | ad0849d8900b9f782546a46918ebe65e3c52e43b (patch) | |
tree | d9a4d7f7d861b659a03bde9ec6da98d6f55f8653 /usr.sbin/ypserv/yp_server.c | |
parent | 8a2d37b3e57ef2cb34c084a48c2a9ec75d6774fc (diff) | |
download | FreeBSD-src-ad0849d8900b9f782546a46918ebe65e3c52e43b.zip FreeBSD-src-ad0849d8900b9f782546a46918ebe65e3c52e43b.tar.gz |
Add real securenets support. By default, ypserv now uses /var/yp/securenets
in the same was as the SunOS ypserv (same format, described in ypserv man
page). If the user wants tcpwrapper style access control, they can
recompile ypserv to use that instead. This way we get securenets without
having to ship libwrap.a and tcpd.h with core FreeBSD distribution.
If /var/yp/securenets doesn't exist, ypserv allows all connections.
Diffstat (limited to 'usr.sbin/ypserv/yp_server.c')
-rw-r--r-- | usr.sbin/ypserv/yp_server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 3ac7e2e..dfe6eef 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -45,7 +45,7 @@ #include <rpc/rpc.h> #ifndef lint -static char rcsid[] = "$Id: yp_server.c,v 1.3 1996/01/10 16:07:39 wpaul Exp $"; +static char rcsid[] = "$Id: yp_server.c,v 1.2 1995/12/23 21:35:35 wpaul Exp $"; #endif /* not lint */ int forked = 0; @@ -408,6 +408,9 @@ ypproc_clear_2_svc(void *argp, struct svc_req *rqstp) if (yp_access(NULL, (struct svc_req *)rqstp)) return (NULL); + /* Re-read the securenets database for the hell of it. */ + load_securenets(); + result = &rval; return((void *) &result); } |