NetBSD/libexec
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
..
atrun - Don't use a stale errno when printing an error 2005-10-31 16:15:42 +00:00
comsat PR/36266: David A. Holland: Don't read and write sig_atomic_t variables in 2007-05-03 15:09:41 +00:00
cron
fingerd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
ftpd Replace references from draft-ietf-ftpext-mlst-NN to RFC 3659. 2007-05-10 05:59:30 +00:00
getNAME Handle .br - this makes processing of the netbsd-4 2006-09-12 21:56:43 +00:00
getty Remove duplicated #includes and some trailing whitespace while here. 2007-01-17 21:44:50 +00:00
hpropd Remove more references to kerberosIV. 2006-03-23 20:14:16 +00:00
identd Avoid buffer overflow. 2006-09-29 17:02:04 +00:00
kadmind sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
kpasswdd sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
ld.aout_so eliminate alloca for ssp. 2006-11-09 19:45:57 +00:00
ld.elf_so fix a comment. 2007-05-18 21:46:39 +00:00
lfs_cleanerd Bump date for previous. 2006-12-23 07:21:34 +00:00
mail.local Coverity CID 3931: Fix memory leak. 2006-09-27 17:15:20 +00:00
makekey
makewhatis Only include libutil if !HOSTPROG 2006-08-30 12:11:40 +00:00
rexecd end the argument list to exec*(3) with a NULL instead of a bare '0', as 2006-05-11 00:22:52 +00:00
rlogind change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rquotad change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rstatd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rusersd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.rwalld change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rpc.sprayd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
rshd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
talkd - use getnameinfo instead of gethostbyaddr 2007-01-08 17:51:34 +00:00
telnetd Move ctype.h from headers to files which really need it 2007-02-21 21:14:07 +00:00
tftpd change (mostly) int to socklen_t. GCC 4 doesn't like that int and 2006-05-09 20:18:05 +00:00
utmp_update Use non-blocking I/O when opening the tty. Otherwise we can get stuck... 2004-11-07 07:04:31 +00:00
Makefile Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
Makefile.inc WFORMAT is no more... 2006-10-08 17:52:28 +00:00