NetBSD/bin
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
..
cat - Applied patch from PR bin/35408 by Andreas Wiese. 2007-01-13 11:51:59 +00:00
chio fix typos 2007-04-29 20:23:34 +00:00
chmod Add xref to chflags(1). From Andre Luiz de Oliveira in PR 32265. 2005-12-09 20:27:02 +00:00
cp fix whitespace nits (space -> tab) 2006-12-26 00:13:24 +00:00
csh fix typos 2007-04-29 20:23:34 +00:00
date * Prevent out-of-bounds read tsptype if a packet with 2007-02-04 22:21:53 +00:00
dd fix typos 2007-04-29 20:23:34 +00:00
df Improve wording of -a description. From FreeBSD via Zafer Aydogan. 2007-01-28 09:56:13 +00:00
domainname
echo
ed s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
expr Handle asprintf failing to allocate. 2006-03-17 14:43:11 +00:00
hostname
kill Coverity CID 2356: Remove bogus test !*argv; also cleanup string usage. 2006-03-17 22:30:11 +00:00
ksh Applied patch by Arto Huusko from PR bin/24753 to append a slash to "." 2007-01-28 22:30:12 +00:00
ln Add -i to usage. 2006-10-13 20:37:10 +00:00
ls Complete the move of string_to_flags() and flags_to_string() from the 2006-12-14 20:09:35 +00:00
mkdir Fix setmode error handling. 2005-10-01 20:22:29 +00:00
mt use c99 initializers 2006-10-16 00:07:32 +00:00
mv Allow files whose name starts with a dash be moved across filesystem 2007-02-15 09:57:16 +00:00
pax PR/36275: john at iastate dot edu: tar -s modifies symlink targets 2007-05-04 21:19:36 +00:00
ps Revert the changes done after newlock2 merge, except for the removal of 2007-02-17 22:49:56 +00:00
pwd
rcmd Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rcp pass lint; from Anon Ymous 2006-12-15 22:45:34 +00:00
rm New sentence, new line. Bump date for previous. 2006-09-02 23:28:32 +00:00
rmdir
sh Document that shell arithmetic now uses intmax_t. Document that 2007-03-25 06:56:43 +00:00
sleep PR/27140: "sleep time" doesn't error out. 2005-10-17 10:11:46 +00:00
stty c99 initializers 2006-10-16 00:37:55 +00:00
sync
systrace Instead of putting a full copy of realpath here, use the system's realpath. 2007-05-24 18:18:43 +00:00
test Make sure we don't run over the end of the argument array while scanning 2007-05-24 18:47:08 +00:00
Makefile Remove 'l'. Those who do not learn from history are doomed to repeat it. 2007-02-08 03:57:53 +00:00
Makefile.inc sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00