Commit Graph

83 Commits

Author SHA1 Message Date
christos
46edb91e9f bump shared libraries. 2009-01-11 03:07:47 +00:00
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
mrg
6f4493cd5c xdr sucks. sprinkle some (void *) casts into it's functions taking void **,
and shut up GCC4.
2006-05-11 17:11:57 +00:00
lukem
6463b925a7 Build librpcsvc as a shared library, since pam_unix.so needs it. 2005-01-08 10:02:36 +00:00
kleink
d93fc4c14e Tidy up the namespace: lint -> __lint__. 2004-07-01 22:52:34 +00:00
wiz
c594b29834 bootparams, not bootparms. 2003-12-25 19:01:35 +00:00
yamt
d7adaffe99 use {u_,}int32_t instead of {u,}int32(={u_,}long) 2003-09-21 15:35:46 +00:00
salo
99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
yamt
c6f761afb7 NFSv3 definitions from FreeBSD. 2003-05-08 13:32:00 +00:00
yamt
4ae20ba3f3 mount v3 protocol definition. from FreeBSD. 2003-05-07 13:48:47 +00:00
bouyer
a39a98c45d Implement rquota RPC version 2, compatible with the linux implementation,
as proposed on tech-userlevel on Dec 06 2002. This allows to retrieve
group quota informations from NFS servers.
2003-02-14 14:55:58 +00:00
sommerfeld
8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
lukem
ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +00:00
wiz
c640510df0 Correct spelling of "delimiter", and remove from ignored-errors lists. 2002-02-26 02:37:28 +00:00
christos
169617572d Fix u_int <-> size_t confusion. 2002-02-05 23:00:59 +00:00
christos
aa9da9e0fc size is really a u_int 2002-02-05 22:01:09 +00:00
tv
5e6444c144 Cope with RPCGEN now conta8ining multiple words. 2002-01-29 11:22:25 +00:00
wiz
b36c0a5406 deamon -> daemon 2002-01-21 14:42:26 +00:00
tv
001067bbd1 Readability cleanups; MKfoo=no -> NOfoo. 2001-12-12 00:51:00 +00:00
tv
b6499748ae Be smarter about finding rpcgen's absolute path; only do it if ${RPCGEN}
(when evaluated) does not start with a /.  Also don't go through a make(1)
recursion step; just use !=.
2001-11-01 15:03:07 +00:00
tv
89bc80292e No need to do the tricky XRPCGEN dance; simply add the rules after
.include <bsd.lib.mk>.  Defining the explicit compile rules later is fine.
2001-10-31 20:56:09 +00:00
mycroft
6da9b09f70 Use `rpcgen -C'. 2001-03-21 20:14:10 +00:00
enami
62589880a5 No need to invoke extra shell. 2001-02-16 01:05:32 +00:00
cgd
c338834cd9 use expr to do subtraction. shell math isn't as portable. 2001-01-16 02:42:39 +00:00
sommerfeld
a0bc06eb92 parallelize (mostly ${MAKE} print-objdir -> ${PRINTOBJDIR}) 2000-12-30 17:21:44 +00:00
matt
1ebd90e347 Add -${MAKEFLAGS} so that make options (like -m) get used for the submake 2000-11-29 09:25:22 +00:00
erh
5303e70da5 Make targets which are generated with rpcgen depend on the rpcgen binary. 2000-09-10 23:21:49 +00:00
cgd
4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +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
bouyer
1116e111be - remove NLM4_NULL proc, rpcgen will do one for us (which works better :)
- add a procedure NLM_SM_NOTIFY (in version 0), used by statd to send
  notifications to lockd.
2000-06-07 14:30:15 +00:00
bouyer
1503a97acc Add definitions for nlm version 4 (for use with NFSv3). 2000-02-02 18:15:12 +00:00
simonb
42724dd4d2 More trailing white space. 1999-07-02 15:37:33 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem
ce147c1c1c revert; we can't break the existing ABI and API 1998-02-12 01:57:27 +00:00
lukem
f18da82e69 use u_int32_t instead of u_long 1998-02-10 06:32:42 +00:00
lukem
1f1a64af74 remove WARNS=0, because mycroft fixed rpcgen(1) to DTRT WRT outputting KNF. 1997-10-09 22:26:17 +00:00
mycroft
51e08ca293 KNF. 1997-10-09 15:45:15 +00:00
lukem
5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
lukem
6112a51e58 use __RCSID() 1997-10-09 14:21:19 +00:00
mycroft
8eab21467b Minor cleanup. 1997-05-09 14:22:41 +00:00
mycroft
cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
christos
57c6bc4254 - Don't use ut_line, when you mean ut_name [does not matter really because
(sizeof(ut_line) == sizeof(ut_name)].
- Don't free bogus memory. xdr_bytes when is called with a non-null array
  pointer, it tries to free it. We are passing real arrays to xdr_bytes,
  so we really don't want to call free on them.
1997-04-17 17:29:24 +00:00
christos
8259dd08d6 Makefile cleanups:
use INCS variable to install includes and FILES to install objects.
1997-03-24 22:11:48 +00:00
mikel
8962a9481a ANSIfy; fixes PR lib/1107. 1996-12-02 06:51:11 +00:00
thorpej
7f9ea0f2ed Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
thorpej
e9b92001e2 RCS id policing. 1996-09-26 23:45:22 +00:00
cgd
5dd52b454d Be more verbose during 'includes' installation. Instead of showing
'install' commands only if the 'cmp' sees differences, show the
'cmp ... || install ...' commands like other Makefiles do when
installing includes.  It's comforting to see the extra output (to see
that updated files would actually be installed), and is consistent
with other makefiles.
1996-05-10 05:03:06 +00:00
pk
ed403311db $Id -> $NetBSD (PR#682). 1996-05-08 19:24:04 +00:00
jtc
c2ad7fffa8 Changed rules used for converting rpc source (*.x) to *.c and *.h so
that rpcgen invocation is not hidden.  There is no reason to hide it,
and it might be useful.  For example, this makes the make -n output
much more useful.
1996-04-29 21:11:24 +00:00