NetBSD/sbin
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
..
amrctl
apmlabel Sort options. Bump date. 2007-05-19 14:23:25 +00:00
atactl
badsect
bim
bioctl Remove an extra comma. 2007-05-07 11:02:21 +00:00
brconfig Bump date for previous. 2007-01-08 07:22:12 +00:00
ccdconfig Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
cgdconfig Add a DIAGNOSTICS section and explain that the error message "could not 2007-02-23 20:00:04 +00:00
chkconfig
clri
disklabel Remove defunct B from getopt string. 2007-04-12 18:41:23 +00:00
dkctl
dkscan_bsdlabel Use CPPFLAGS, not COPTS, and ${NETBSDSRCDIR}, not "../..". This 2007-03-02 04:03:17 +00:00
dmesg
drvctl drvctl 4 does not exist. 2007-03-10 20:32:26 +00:00
dump Convert a couple of "(void)&" constructs to volatile. 2006-12-18 20:07:32 +00:00
dump_lfs
edlabel
fastboot
fdisk Plural fix. 2007-05-20 22:27:46 +00:00
fsck Cross-reference fsck_lfs and fsck_ext2fs. 2007-02-23 19:32:16 +00:00
fsck_ext2fs include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
fsck_ffs apply revision 1.31 yet again: 2007-04-12 05:19:18 +00:00
fsck_lfs include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
fsck_msdos Change mismatch of bytes 11 to 90 to be a warning, not an error, and 2007-03-19 18:30:40 +00:00
fsdb Remove unused ctype.h 2007-03-10 01:16:17 +00:00
fsirand include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
gpt Use strtoll() when converting a 64-bit quantity. This makes "gpt add" 2007-02-16 17:13:02 +00:00
ifconfig Don't try to convert numbers to names for either endpoint of a 2007-03-26 05:02:44 +00:00
init backout previous. 2007-03-24 00:17:34 +00:00
ldconfig
mbrlabel
mknod
modload
modunload
mount - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_ados - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_cd9660
mount_ext2fs
mount_fdesc
mount_ffs
mount_filecore - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_hfs Fill in AUTHORS section. Bump date. 2007-05-19 14:21:36 +00:00
mount_kernfs
mount_lfs Move lfs_cleanerd from /usr/libexec to /libexec. This is to allow putting 2006-11-11 14:47:27 +00:00
mount_msdos - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_nfs Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mount_ntfs - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_null
mount_overlay
mount_portal
mount_procfs whooops, bump date also 2007-04-05 21:31:44 +00:00
mount_ptyfs
mount_smbfs
mount_sysvbfs
mount_tmpfs s/tons/lots/, per simonb@'s suggestion. This looks more formal. 2007-01-03 08:39:29 +00:00
mount_udf - removes unused ctype.h header 2007-03-10 00:30:36 +00:00
mount_umap
mount_union
newbtconf
newfs PR/36229: Geoff Wing: uninitialized dkwedge_info structure in mount_mfs 2007-04-28 02:56:32 +00:00
newfs_lfs Remove more duplicate #includes, 2007-01-17 21:59:49 +00:00
newfs_msdos include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
newfs_sysvbfs
nologin
pdisk
ping Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ping6 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
pppoectl Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
raidctl
rcorder No need to cast pointers to (char *) when passing to free(3). 2007-03-03 00:09:30 +00:00
reboot Add a caveat about reboot(8) not running shutdown scripts. This addresses 2007-05-24 23:19:43 +00:00
resize_ffs
resize_lfs Move lfs_cleanerd from /usr/libexec to /libexec. This is to allow putting 2006-11-11 14:47:27 +00:00
restore Bump date because of last change. 2007-04-30 12:33:13 +00:00
rndctl
route TSEL() is const char* now 2007-02-18 01:48:37 +00:00
routed Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rtsol
savecore from Anon Ymous: remove (void)&var; 2006-12-18 20:08:48 +00:00
scan_ffs Add -b flag into usage(). 2007-05-01 21:43:37 +00:00
scsictl Bump date for previous. 2007-01-23 20:34:17 +00:00
setkey
shutdown Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
slattach
swapctl
sysctl PR/35304: C J Coleman: Off-by-one nul byte overwrite in mode_bits routine 2006-12-21 22:25:39 +00:00
ttyflags Remove more duplicate #includes, 2007-01-17 21:59:49 +00:00
tunefs
umount
veriexecctl Add missing #include <sys/ioctl.h> to make this build without warnings. 2007-05-15 22:01:19 +00:00
wdogctl
wsconsctl
Makefile Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block 2007-05-01 17:18:52 +00:00
Makefile.inc