yp_access.c (50479) | yp_access.c (72091) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#ifndef lint 35static const char rcsid[] = | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#ifndef lint 35static const char rcsid[] = |
36 "$FreeBSD: head/usr.sbin/ypserv/yp_access.c 50479 1999-08-28 01:35:59Z peter $"; | 36 "$FreeBSD: head/usr.sbin/ypserv/yp_access.c 72091 2001-02-06 11:21:58Z asmodai $"; |
37#endif /* not lint */ 38 39#include <stdlib.h> 40#include <rpc/rpc.h> 41#include <rpcsvc/yp.h> 42#include <rpcsvc/yppasswd.h> 43#include <rpcsvc/ypxfrd.h> 44#include <sys/types.h> --- 148 unchanged lines hidden (view full) --- 193 * - The client's IP address is checked against the securenets rules. 194 * There are two kinds of securenets support: the built-in support, 195 * which is very simple and depends on the presence of a 196 * /var/yp/securenets file, and tcp-wrapper support, which requires 197 * Wietse Venema's libwrap.a and tcpd.h. (Since the tcp-wrapper 198 * package does not ship with FreeBSD, we use the built-in support 199 * by default. Users can recompile the server with the tcp-wrapper library 200 * if they already have it installed and want to use hosts.allow and | 37#endif /* not lint */ 38 39#include <stdlib.h> 40#include <rpc/rpc.h> 41#include <rpcsvc/yp.h> 42#include <rpcsvc/yppasswd.h> 43#include <rpcsvc/ypxfrd.h> 44#include <sys/types.h> --- 148 unchanged lines hidden (view full) --- 193 * - The client's IP address is checked against the securenets rules. 194 * There are two kinds of securenets support: the built-in support, 195 * which is very simple and depends on the presence of a 196 * /var/yp/securenets file, and tcp-wrapper support, which requires 197 * Wietse Venema's libwrap.a and tcpd.h. (Since the tcp-wrapper 198 * package does not ship with FreeBSD, we use the built-in support 199 * by default. Users can recompile the server with the tcp-wrapper library 200 * if they already have it installed and want to use hosts.allow and |
201 * hosts.deny to control access instead of having a seperate securenets | 201 * hosts.deny to control access instead of having a separate securenets |
202 * file.) 203 * 204 * If no /var/yp/securenets file is present, the host access checks 205 * are bypassed and all hosts are allowed to connect. 206 * 207 * The yp_validdomain() function checks the domain specified by the caller 208 * to make sure it's actually served by this server. This is more a sanity 209 * check than an a security check, but this seems to be the best place for --- 116 unchanged lines hidden --- | 202 * file.) 203 * 204 * If no /var/yp/securenets file is present, the host access checks 205 * are bypassed and all hosts are allowed to connect. 206 * 207 * The yp_validdomain() function checks the domain specified by the caller 208 * to make sure it's actually served by this server. This is more a sanity 209 * check than an a security check, but this seems to be the best place for --- 116 unchanged lines hidden --- |