Commit Graph

29 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
81c9862ba6 - Minor logical restructure. Make sure we can create the client before
even bothering to call makemsg(); (Liam Foy)
- Use MAXPATHLEN consistently (Liam Foy)
- WARNS=3, KNF and misc cleanups
2005-08-09 23:41:38 +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
grant
be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
wiz
252106e65e Punctuation nit. 2001-12-08 19:13:43 +00:00
enami
79dbd4ba43 Check return value of mkstemp correctly. 2001-08-16 01:00:31 +00:00
taca
20117cd175 - Knf auto variables in modified line by me.
- Print "??" as tty name instead of print nothing.  Suggested by jhawk.
2000-10-02 03:28:42 +00:00
taca
99ebb8038f - Check return value of ttyname(3) and prevent to pass NULL pointer for
"%s" in printf style format string.
- Use STDERR_FILENO as paramter for ttyname(3).
2000-09-04 15:21:24 +00:00
enami
8ab9946e10 Substitute the cross reference to portmap(8) with rpcbind(8). 2000-07-03 10:06:24 +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
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
christos
d374d91f3d small cast. 1998-12-19 21:50:45 +00:00
mycroft
cc06efc9db const poisoning. 1998-07-26 22:15:38 +00:00
mrg
2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
lukem
b65c70eff6 WARNSify, fix .Nm usage 1997-10-19 14:30:04 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
cgd
9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
jtc
2c7d5d92c9 Fix spelling errors. 1994-01-11 18:22:48 +00:00
jtc
2a45581848 Must use a struct timeval, not NULL, for the timeout in clnt_call.
Include appropriate header files to bring prototypes into scope.
Enlarge buffer used for tempfile name -- were trying to stuff ~20
chars into a 15 char buffer.
1993-12-10 19:24:39 +00:00
jtc
5068ba496f Add cross references to "SEE ALSO" section. 1993-09-16 01:56:34 +00:00
jtc
4071edc949 Change Sun-OS to SunOS. Every other instance of in manual our manual
is typeset that way.
Remove BUG about sorting options not being supported as rwall never had
sorting.  Probably caused when manpage for rup or rusers was used as a
template.
1993-09-16 01:31:18 +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
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
brezak
1c4fd29c43 Add man page. 1993-06-08 19:24:16 +00:00
brezak
db60ef9d46 No need to link with -lrpc 1993-06-04 14:53:53 +00:00
brezak
5f2b367636 Add rup and rusers. Changes to rwall 1993-06-03 19:32:26 +00:00
mycroft
9596c5e1e8 Fix NULL pointer reference. 1993-04-26 14:43:24 +00:00
cgd
15cf805834 rwall, mostly-original by cgd.
code snarfed from rwalld (from cgd), and wall (from UCB).
1993-04-04 20:15:30 +00:00