Commit Graph

13 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
christos
9a242cda5a bump major 2007-03-10 23:07:18 +00:00
christos
10891a6668 compile alloca using code -Wno-stack-protector 2006-11-09 20:45:01 +00:00
christos
3826ab1249 new files and bump for 4.4 2006-09-28 21:24:33 +00:00
mrg
aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
christos
d16ee74e35 bump version for symbol renames. 2006-02-13 16:50:14 +00:00
christos
12f096059f Update shared library version and adjust for new and removed files. 2006-02-04 22:34:16 +00:00
christos
bdfb565183 bump libssh 2005-11-25 20:29:16 +00:00
christos
d3444e8124 Update for 4.0, bump version. 2005-04-23 16:53:47 +00:00
christos
ceb0805a9b Add -lcrypt where -lcrypto is specified. 2005-03-09 03:11:21 +00:00
christos
4a16e53162 Remove HAVE_LOGIN_CAP it is not used.
Remove radix.c and kerberos glue; we'll put it in the programs themselves.
from Love.
2005-02-13 22:42:24 +00:00
christos
9233e29e04 Update for OpenSSH-3.9; bump major. 2005-02-13 06:06:48 +00:00
lukem
98a04f5390 Implement libssh as a public library, as pam_ssh needs it. 2005-01-03 06:00:12 +00:00