summaryrefslogtreecommitdiffstats
path: root/sbin/ipf
Commit message (Collapse)AuthorAgeFilesLines
* Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-197-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* Honour WITH and WITHOUT_INET6_SUPPORT.cy2014-08-051-0/+8
| | | | | Approved by: glebius (mentor) MFC after: 3 days
* In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-087-0/+14
| | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* Update ipfilter 4.1.28 --> 5.1.2.cy2013-09-063-18/+42
| | | | | Approved by: glebius (mentor) BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)
* Link ipfilter(4) and ipfilter(5) to the build to stop the wrong man pageissyl02012-08-281-2/+2
| | | | | | | | displaying for 'man 4 ipfilter'. PR: docs/118020 Approved by: gjb (mentor) MFC after: 5 days
* Use both NO_WFORMAT and NO_WARRAY_BOUNDS for sbin/ipf, it would be toodim2011-12-171-0/+2
| | | | | | | disruptive to actually fix all the warnings, and the code hasn't been maintained for several years. MFC after: 1 week
* Always assign WARNS using ?=uqs2010-03-021-2/+1
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+2
| | | | Submitted by: Ulrich Spörlein
* This makefile builds contrib code, so I won't try to fix all thejb2007-11-181-0/+2
| | | | casts from pointer to int here.
* Exclude inet_addr.c from the build.cognet2007-06-111-1/+1
| | | | | | | It only provides inet_aton(), which is already provided by the libc. This causes multiple symbol definitions when linking statically. Reviewed by: darrenr
* Merge IPFilter 4.1.23 back to HEADdarrenr2007-06-041-22/+22
| | | | See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
* Fix the manual build.obrien2006-09-105-24/+23
|
* Regularly scheduled patch to unbreak regularly scheduled post-ipfilterkan2006-08-171-1/+1
| | | | | | | buildworld breakage. Exclude loglevel.c from the build. It does not appear to be used by anything in the tree and buildworld succeeds just fine without it.
* Adapt to ipf 4.1.13guido2006-08-161-2/+2
|
* fix style nitobrien2006-05-071-1/+1
|
* Add missing library dependencies.ru2006-04-131-0/+1
|
* Add printproto.c to libipfguido2005-12-301-2/+2
|
* Fix the contents of the underneath .depend files and "make checkdpadd".ru2005-05-171-8/+4
|
* Enable building /sbin/ipf (but not the rescue version) with the ability todarrenr2005-05-161-2/+4
| | | | parse bpf strings for filter rules in ipf.conf
* Patches from Ruslam Ermilov to remove NetBSD bits from Makefiles and cleanupdarrenr2005-04-288-38/+4
| | | | build problems with rescue.
* Not looking for ipfilter source files in the right placedarrenr2005-04-261-1/+1
|
* create a new build heirarchy for ipfilter toolsdarrenr2005-04-2514-16/+418
|
* Link a couple of missing manpagesguido2005-01-071-0/+2
| | | | | Submitted by: Hideyuki KURASHINA <rushani@FreeBSD.org> MFC after: 1 week
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* Move my maintainership of parts of ipfilter back to Darren Reedguido2003-06-061-1/+1
|
* * add extra -I path to get the "matching" header files.darrenr2002-03-201-0/+1
|
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Pick up the correct headers from sys/contrib/ipfilter/netinet.ru2001-06-181-1/+3
|
* Backout previous change (removal of -I${.CURDIR}/../../sys/netinet).ru2001-06-111-1/+1
| | | | | | | | | | This is needed to pick up the right headers. Wrong headers from src/contrib/ipfilter are used otherwise. The right fix would be to fix contrib/ipfilter C sources to pick up headers from <sys/netinet>. Noticed by: peter
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+1
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-3/+1
| | | | - MAN[1-9] -> MAN.
* Build with -DUSE_INET6 so that we can actually use the IPv6 support innectar2000-10-311-1/+1
| | | | | | IPFilter 3.4.x. Approved by: darrenr, guido
* add common.c to SRCS to fix compile problemsdarrenr2000-05-241-1/+1
|
* Add MAINTAINER tag.guido1999-12-151-0/+2
| | | | | The Makefiles in sbin/{ipfstat,ipmon,ipnat} were repository copied from the respective directories in usr.sbin
* Revive userland stuff for ipfilter.guido1999-11-231-0/+12
| | | | | Also fixes: PR: 7791
* Nuke the old antique copy of ipfilter from the tree. This is old enoughpeter1999-10-101-12/+0
| | | | | to be dangerous. It will better serve us as a port building a KLD, ala SKIP.
* Initial bmake scaffolding for ipfilter userland stuff.peter1998-03-211-0/+12
Obtained from: large chunks stolen from OpenBSD and NetBSD
OpenPOWER on IntegriCloud