Commit Graph

18 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
martti ecde67984b Define INET6 only if ${USE_INET6} != "no" 2005-12-28 11:58:23 +00:00
martti e2030cd2f7 Define INET and INET6 or things break when linking in fil.o (hi christos!) 2005-12-28 11:54:45 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
christos bb0410eb96 Account for ipfilter move. 2004-10-01 15:26:35 +00:00
he bf8f08004d Move kvm library spec to Makefile.inc, so that it gets specified
after the ipf library, since the ipf library depends on some functions
from the kvm library.

Fixes a build problem observed when building for sun2 (though I
won't claim understanding why this doesn't show up elsewhere).
2004-04-03 22:16:27 +00:00
lukem bfd4f974d0 de-lint makefiles:
* fix -j N parallel build issues
* support MAKEVERBOSE
* move NOxxx= to before <bsd.own.mk>
* remove unnecessary -ll (except for ipsend)
* remove unnecessary CPPFLAGS
* only build libipf.a (we don't need libipf_p.a or libipf_pic.a)
* fix dependencies upon libipf.a

(more could be done, but that requires fixing dist/ipf/*)
2004-03-29 04:39:59 +00:00
martti 621e9bac7f Sync with official IPFilter 2004-03-28 09:01:26 +00:00
erh 1f5fff1c1c PR# standards/16143: hide struct uio from userland behind a __UIO_EXPOSE
ifdef.  Define this when building ipf, since it shares code between the
kernel and userland and uses struct uio.
2003-09-13 16:59:29 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
christos c4e5d9e2b5 add -DSTATETOP to enable top(1) style display for ipfstat. 2001-03-13 16:29:42 +00:00
veego 7134832d9a Update for IP Filter 3.4.1 2000-05-03 11:40:53 +00:00
veego 9c9aae0fda Use the new IP Filter dist layout for.
We are now at version 3.3.5.
1999-12-12 11:29:55 +00:00
mrg 60c28e1f95 sigh. merge ipfilter 3.2 onto the trunk. merge to the branch was a mistake. 1997-10-30 16:08:54 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
veego 6a116d459c Resolve conflicts from the merge of ipf 3.2beta5. 1997-09-21 17:02:33 +00:00
mycroft af2068bc6a Use ${.CURDIR} to find Makefile.inc. 1997-01-20 07:33:57 +00:00
mrg 4810e839ab initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:06:38 +00:00