Commit Graph

27 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
rpaulo b04eff3537 ANSIfy. de-P(). Syle nits. 2005-09-25 18:56:33 +00:00
rpaulo ff2bab1c59 tcp_callrpc(): bring in the FreeBSD version of this call. It uses the
"new" rpc functions and works with IPv6.
2005-09-25 18:50:28 +00:00
mycroft de443fd960 Patch from PR 15181 to try using TCP first, fixing problems with long
responses.
2004-08-06 16:10:54 +00:00
grant fc6ca7735c uppercase NFS acronym 2004-01-15 03:33:20 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz 27b55da0f5 Sort sections. 2001-12-08 19:15:12 +00:00
cgd d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
msaitoh e633320474 Insert a tab if the length of the directory > 35 bytes to prevent
concatenation.
2000-11-21 11:09:24 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
kleink 93cd45c3d5 No need to include <socketvar.h>. 1998-04-02 11:10:52 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem cfd8831a5f WARNSify, fix .Nm usage 1997-10-19 23:09:41 +00:00
mikel 576ed679d4 xref mount(8) not nonexistent mount(1) 1997-07-16 05:43:33 +00:00
cgd d0ec1c6b6f fix usage message, clean up RPC error printing. 1996-05-01 18:14:10 +00:00
mark f8fcb56bce Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-04-01 21:31:33 +00:00
jtc 3f2b3b5a18 Sync with 4.4lite2 1995-08-31 22:26:07 +00:00
cgd 424af2982a pull in stdlib.h 1994-12-24 17:38:52 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
jtc 0ac05e5259 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-21 08:42:01 +00:00
cgd 9d26d3af36 get section right; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:04:16 +00:00
jtc f4db87c6e4 Fix typos & spelling errors 1994-02-10 18:24:46 +00:00
cgd f771d07953 no more librpc 1993-10-08 02:34:16 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00