Commit Graph

70 Commits

Author SHA1 Message Date
itojun 74a8711692 protect from nasty PTR records which could be abused to workaround access
control:
	1.1.1.10.in-addr.arpa.	IN PTR	2.3.4.5
2003-05-26 10:05:07 +00:00
thorpej 40e1466e08 Only fill in the server and client sockaddr in the request if
the fields are NULL.
2003-03-30 00:32:52 +00:00
lukem 0beaa38406 If we're going to replace strtok() with strtok_r(), and the caller of the
latter is invoked recursively, use static (instead of automatic) storage
for the "last" pointer so that we remember where we're up to ...

Fixes bug with hosts.deny rules such as "rpcbind: ALL EXCEPT some.domain".
2002-12-26 12:53:59 +00:00
jdolecek 66f1feaba3 avoid endless loop in xgets() when line in host access conf file is longer
than BUFSIZ
fixes PR lib/15025 by Trevin Beattie
2002-12-02 22:08:44 +00:00
wiz 4f92a4853d New sentence, new line. From Robert Elz. 2002-10-01 19:38:46 +00:00
mjl c455730141 Correct #ifdef'ed out usage of memset 2002-07-20 14:18:45 +00:00
itojun 211e500c75 use strtok_r, as strtok can interfere with other callers. from openbsd 2002-06-22 11:52:40 +00:00
itojun d2503f643b type mismatch 2002-06-07 01:39:07 +00:00
itojun 44772e4b2f there are people using #ifdef APPEND_DOT. recover it. 2002-06-07 01:36:09 +00:00
itojun 8288fc93ab s/STRN_CPY/strlcpy/ 2002-06-06 21:45:19 +00:00
itojun 3ba1803eb3 correct misuse of strncpy (use strlcpy). from openbsd 2002-06-06 21:42:42 +00:00
itojun 2f7d82e63d support scoped IPv6 address properly. PR 16810. 2002-06-06 21:28:49 +00:00
itojun 5ab78ccf04 be more picky about IP option. len >= 2 for normal options. 2002-05-24 06:05:31 +00:00
itojun 2ef04ff634 cleanup some of portability #ifdefs, which are not needed for netbsd. 2002-05-24 05:38:19 +00:00
itojun 5faa38589c be more picky about malformed IP options. 2002-05-24 05:30:54 +00:00
atatat 43fa832908 Clean out "dirty" to avoid spurious log entries. 2002-04-24 16:37:08 +00:00
atatat ae10ef9a4b Log a warning if the address (n) has more significant bits than the
netmask (m) in a entry of the form "n.n.n.n/m.m.m.m".
2002-04-04 19:50:27 +00:00
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz d70fe2e86c Fix error message, as reported in lib/15711 by Onno van der Linden. 2002-02-23 23:28:31 +00:00
wiz d5bbc54aba Use correct comment macro. 2002-02-20 11:33:25 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz bed5b7e260 Whitespace nit. 2002-01-15 02:53:28 +00:00
lukem 2e5ff91d16 WARNS=2 fixes 2001-11-05 15:05:18 +00:00
atatat 349f0e356b Rearrange the way syslog() is used. Some messages include %m which
syslog understands, but vsnprintf() does not.
2001-09-24 17:55:47 +00:00
itojun 999357cb7d new tcp_wrapper license, as deraadt@openbsd negotiated with wietse
and presented in ftp://ftp.porcupine.org/pub/security/tcp_wrappers_license.
(details: see openbsd changelog for libexec/tcpd/DISCLAIMER).
2001-06-02 05:20:56 +00:00
kleink 530e81b761 Wrap external declarations inside __{BEGIN,END}_DECLS; fixes PR lib/12458
by Dan McMahill.
2001-03-27 22:46:55 +00:00
itojun d65f44a1a5 correct typecast mistake.
http://www.openbsd.org/errata.html#libwrap
2001-02-27 04:13:13 +00:00
sommerfeld 8aefd97377 Format string audit cleanup (increase format checking) 2000-10-04 16:24:49 +00:00
itojun dbc196be0d fatal typo. From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> 2000-07-26 14:59:06 +00:00
itohy 9bdf22f648 Correct ctype(3) usage, just in case.... 2000-07-14 05:26:04 +00:00
billc cbfdcd8cc0 backout previous changes. 2000-04-02 06:31:58 +00:00
billc 38a39a9ac0 namespace collision with getopt change (struct option -> libwrap_option) 2000-04-02 03:53:15 +00:00
danw ff856525f8 #include <stdio.h> to cover the use of "FILE *" in one of the prototypes.
(The stock tcpd.h doesn't have prototypes, and some third-party code assumes
it can include tcpd.h without stdio.h.)
2000-02-05 19:14:57 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
itojun 751ba94d99 fix behavior for configuration like "ALL: 127.".
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
1999-09-10 08:59:47 +00:00
itojun 1e8c736a70 Apply IPv6 support patch.
Note that all IPv6 address must be wrapped with square bracket, like:
	ALL: [::1/128] 127.0.0.1/255.255.255.255
Increase shlib minor.

ftp://ftp.kame.net/pub/kame/misc/tcp_wrappers-76-v6-19990831.diff.gz
1999-08-31 13:58:58 +00:00
itojun 2cd3c05799 increment shlib minor for libwrap (0.0 -> 0.1). 1999-08-27 16:24:01 +00:00
itojun b98c263379 resolve conflicts on upgrade (to 7.6). 1999-08-27 16:06:17 +00:00
bouyer d363ff990d Xref hosts_access(3). 1999-08-02 16:09:41 +00:00
simonb 10b4ca41b4 Revert white space changes for imported sources. 1999-07-03 12:30:16 +00:00
simonb 3f777e28cc More trailing white space. 1999-07-02 15:58:35 +00:00
christos 63c771b7c0 Allow passing NULL for check only. 1999-05-09 16:07:56 +00:00
christos 8c92070a91 don't use inet_addr, use inet_aton... Otherwise masks of 255.255.255.255
don't work, so we cannot restrict rules to a single host.
1999-05-09 16:03:10 +00:00
abs edc1a24a56 Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
RCS Id.
1999-02-25 08:02:19 +00:00
christos 759b834daa sprintf -> snprintf (not needed, but since snprintf is used everywhere else) 1999-01-18 20:21:19 +00:00
christos b5ea93f921 PR/6837: Greg A. Woods: Bring into scope getpeername to make sure that
the #define workaround works. XXX: But we don't need this workaround
	 for NetBSD.
1999-01-18 19:54:20 +00:00
christos 05c9a1f2b5 PR/6837: Greg A. Woods: Add RBL capability for libwrap. 1999-01-18 19:45:26 +00:00
christos 6ab93ab855 PR/6836: Grag A. Woods: Formatting errors and limitation doc. 1999-01-18 19:39:24 +00:00
simonb f895d4aa84 Remove trailing space from LIB= line 1998-10-07 02:25:12 +00:00
tv fefb03d5ec Add LOG_AUTHPRIV and LOG_FTP as inspired by PR #3176. 1998-03-19 17:16:33 +00:00