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
thorpej 7ee41d4310 Need to -I${RPC_XDIR} now, since we don't generate the .h file
locally anymore.
2003-01-06 02:26:53 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
christos d0deebbba7 Add a simple test to see if the whoami functionality works. 2002-09-11 18:19:42 +00:00
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
tv eef7548a36 Move CLEANFILES up so it is actually used. Noted by Bernd Ernesti. 2002-02-02 17:11:38 +00:00
tv 2b7bf32264 Make sure DESTDIR is set before using it in a dependency. 2002-01-31 15:16:21 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
mycroft 45d698dd33 Make the rpcsvc dependencies work a bit better. 2000-06-12 01:57:25 +00:00
thorpej 653c3855f5 Use pidfile(3). 1999-06-06 02:38:00 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem 6d66b6be40 WARNSify; generate ansi c code with rpcgen, cleanup manpage 1997-10-17 15:59:05 +00:00
cjs 7a66732d34 Back out BUILDDIR and NOINSTALL changes. 1997-05-31 21:21:13 +00:00
cjs 5fd7ce7066 These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
thorpej 52110e02f0 RCS id police. 1996-08-30 20:03:54 +00:00
pk d8f00aa36c Conform to rpcgen generated names and prototypes.
The server-side worker routines now have "_svc" appended to avoid
conflict with client-side prototypes.
1995-06-24 15:03:49 +00:00
jtc a005fb19e3 fix typo 1995-04-12 05:19:51 +00:00
jtc cc47146dee Install manpage as both bootparamd(8) and rpc.bootparamd(8).
Changed manpage so both bootparamd and rpc.bootparamd are mentioned in NAME
section.
1995-04-12 00:53:09 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
gwr cd8e5bc1c9 Add a man page and a link for bootparamd(8). 1994-10-03 18:48:40 +00:00
cgd 467c1faae5 don't need -lutil 1994-01-28 01:05:30 +00:00
deraadt 51fe63d28c whoops. typo. 1994-01-17 15:13:32 +00:00
deraadt b53b616201 remove two links before recreating them 1994-01-14 19:45:51 +00:00
deraadt 0d8ec8d0db improved parser by <roland@frob.com> to handle \-continuation and YP. 1994-01-10 14:04:44 +00:00
deraadt ae99bc57e3 rpc.bootparamd written by Klas Heggemann <klas@nada.kth.se>
(yes, it belongs in usr.sbin, not libexec)
1994-01-08 13:22:03 +00:00