Commit Graph

25 Commits

Author SHA1 Message Date
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
mrg abeaa4f60d apply -Wno-pointer-sign with GCC4. 2006-05-12 03:29:11 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
christos b4cc7532f2 WARNSify 1998-02-22 12:08:33 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
mycroft d8eb1d74d5 Define USE_UTIMES. 1997-10-19 14:43:24 +00:00
lukem 8566a4f96c use WARNS=0 not WARNS?=0 to disable warnings 1997-10-19 13:00:58 +00:00
lukem 07d881c8e1 disable WARNS until usr.sbin cron is cleaned up 1997-10-18 13:04:59 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
mycroft 74b93ae68f Don't deny read permission on the executable. 1995-06-10 20:55:16 +00:00
cgd d49bdfc734 don't need bsd.own.mk any more. 1994-12-24 16:28:39 +00:00
cgd 7bcf9338df specify man pages the new way. 1994-12-22 12:29:38 +00:00
cgd 8e0e3522e1 pull in bsd.own.mk by hand, early, so NOMAN= can be defined there. 1994-12-20 15:12:31 +00:00
cgd c440ffb67d kill bogus install -d's, and clean slightly 1994-02-10 01:54:10 +00:00
jtc 837601413b Don't compile with compat.c, since our C library allready has all the
functions it provides.
1994-01-20 02:56:55 +00:00
cgd c40eae0000 note fact that 'cron' moved 1994-01-12 19:29:31 +00:00
jtc d6afb2d353 Hack to get both crontab.1 and crontab.5 manpages installed without having
to rename either file (before crontab.5 was renamed crontab.5.5).
1994-01-05 21:57:48 +00:00
jtc f8caf41af1 Update for Vixie Cron 3.0 1994-01-05 21:03:46 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
mycroft 78f5c43040 Use ${COPY}, not -c for install. 1993-07-18 19:06:45 +00:00
mycroft 39ca5a134b Don't try to install man page if NOMAN set. 1993-04-26 03:24:05 +00:00
glass 5056f8f1ba cleaned up such that it compiles quietly
now installs with right permissions
now installs both man pages properly
1993-03-28 17:27:04 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00