Commit Graph

40 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
plunky
668aa7df44 fix mdoc warning: use -width instead of -column 2007-04-13 18:15:21 +00:00
christos
00dd70ade5 WARNS=4, ansi pass lint. 2006-05-15 14:30:38 +00:00
christos
c3ec4b956d Add the DRV lkm type. From David Boggs. 2006-05-15 12:51:19 +00:00
wiz
7ee6cdd959 Serial comma, remove unnecessary .Pp. 2006-03-24 00:14:23 +00:00
reed
909919ef8b Briefly document output of the modstat utility.
(And update document date.)
2006-03-23 23:59:38 +00:00
reed
04a9318e11 Changing a comment only because the module interface version
is not 1 anymore.
2006-03-23 23:52:35 +00:00
rpaulo
d900564544 PR misc/31280: man 8 modstat is referencing itself. By Stefan Schumacher. 2005-09-09 22:47:26 +00:00
peter
7dbbfa5b53 Update a comment to say that the returned size is in KB. 2004-10-22 09:50:54 +00:00
grant
2ceb845887 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 15:59:16 +00:00
lha
4fa2032edc uppercase the lkm kernel-userspace dev macros and prefix them with LKM_
make modload print the bdev and cdev major when its a dev lkm
2002-09-18 22:59:36 +00:00
tron
735b375648 Don't try to print negative offset in module structure. 2002-09-13 17:16:00 +00:00
wiz
99bacaaa12 Sort sections, sort SEE ALSO, use standard headers, mdocify AUTHORS section. 2001-12-01 20:43:06 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
jdolecek
ee136a8411 add support for COMPAT LKMs
constify type_names[], avoid using random data for unknown/invalid types
2000-12-10 11:52:09 +00:00
kleink
4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
itojun
bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
cgd
db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd
d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
simonb
299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
christos
1501054824 make this compile again... since size_t is unsigned long now, %*d's with
the size arg size_t make gcc bitch.
1999-06-15 15:04:40 +00:00
mrg
42806f4887 deal with 32 vs. 64 bit pointers, from joda@pdc.kth.se as part of PR#6149 1999-06-07 00:24:16 +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
mrg
7505f7caf3 revoke priviledges when no longer needed. 1998-07-06 11:58:51 +00:00
perry
3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem
43298842d0 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-19 05:17:27 +00:00
mrg
ca4f633f80 ensure strncpy() is nul terminated. 1997-05-07 16:35:34 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
mrg
2883126ca7 strcpy -> strncpy (from freebsd). 1996-12-11 00:30:20 +00:00
jtc
b46d63c723 sys/errno.h -> errno.h 1995-06-27 00:18:19 +00:00
cgd
7bcf9338df specify man pages the new way. 1994-12-22 12:29:38 +00:00
cgd
ba346cac3f kill (bogus) multiple inclusions 1994-05-23 05:42:41 +00:00
cgd
3b59599485 kill stupidity 1994-05-05 06:35:50 +00:00
mycroft
5cfca54767 Style cleanup; use err*() and atexit(). 1994-04-01 04:33:48 +00:00
deraadt
c5a096fcf1 do not -DKERNEL please 1994-02-09 15:00:32 +00:00
jtc
42f840d29d Fix spelling error in Copyright notice 1994-01-29 01:43:03 +00:00
deraadt
feb763311e i love ansi 1993-12-03 10:37:14 +00:00
mycroft
4834e0c778 Don't reset CFLAGS. 1993-08-09 23:59:59 +00:00
cgd
26e41afe6d add LKM man pages 1993-06-08 03:07:11 +00:00
cgd
57d3a6d525 add support for terry lambert's loadable kernel modules.
needs a bit of cleanup, but overall: SLICK!
1993-06-07 19:51:59 +00:00