Commit Graph

17 Commits

Author SHA1 Message Date
joerg c22bf27456 ANSIfy + static + __dead 2011-08-30 21:17:06 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
itojun c2a20cc150 %d is not 10 chars, but 12 chars. uwse NI_MAXSERV. sync w/ kame. from openbsd 2003-04-15 07:23:19 +00:00
lukem 805b400ba7 use NETBSDSRCDIR as appropriate 2002-09-19 12:08:37 +00:00
itojun 1ddc65b732 socklen_t audit. KNF. signal handler must use _exit(), not exit().
from deraadt, sync w/kame
2002-09-08 01:40:08 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
itojun b0de371030 rcsid cleanup 2001-11-16 07:10:09 +00:00
itojun c12361e68c sync with latest kame. terminate only if ripng response is not received
for 5 seconds (or length specified by -w).
2001-11-16 07:09:36 +00:00
kleink a0649bd297 getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
wiz 301a2dbf8e Fix date and whitespace mininits. 2001-04-26 23:27:44 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
itojun 10fb60e4ee do not declare errno on our own. from: Patrick Welche <prlw1@newn.cam.ac.uk>
sync with the latest kame tree.
2000-12-19 23:55:02 +00:00
itojun 5e54c56a6d add manpage, rip6query(8). 2000-01-19 06:35:22 +00:00
itojun e9dcae109b use getaddrinfo() for getting address parameter.
clarify command line parser.  add -I option.

(sync with recent KAME)
1999-12-13 04:30:53 +00:00
itojun 26c3d764fd add NetBSD RCS ID. 1999-07-06 13:14:54 +00:00
itojun bfa86f1cc9 route6d: RIPng daemon (similar to route6d)
rip6query: RIPng query (similar to ripquery)

NOTE: we usually do not run route6d on end nodes at startup (rtsol should do
the trick).  So I figured that route6d can be in /usr/sbin, not in /sbin
(routed is in /sbin).  Correct me if I'm wrong.
1999-07-02 11:47:12 +00:00