freebsd-nq/sys/contrib/pf/net
Christian S.J. Peron d94f2a68f8 Introduce a new entry point, mac_create_mbuf_from_firewall. This entry point
exists to allow the mandatory access control policy to properly initialize
mbufs generated by the firewall. An example where this might happen is keep
alive packets, or ICMP error packets in response to other packets.

This takes care of kernel panics associated with un-initialize mbuf labels
when the firewall generates packets.

[1] I modified this patch from it's original version, the initial patch
    introduced a number of entry points which were programmatically
    equivalent. So I introduced only one. Instead, we should leverage
    mac_create_mbuf_netlayer() which is used for similar situations,
    an example being icmp_error()

    This will minimize the impact associated with the MFC

Submitted by:	mlaier [1]
MFC after:	1 week

This is a RELENG_6 candidate
2006-09-12 04:25:13 +00:00
..
if_pflog.c Revise network interface cloning to take an optional opaque 2006-07-09 06:04:01 +00:00
if_pflog.h Avoid pulling in the whole <net/pfvar.h> by opaquely declaring 2006-03-09 15:54:01 +00:00
if_pfsync.c Revise network interface cloning to take an optional opaque 2006-07-09 06:04:01 +00:00
if_pfsync.h Defer ip_output of pfsync updates to an independent callout thread instead 2005-06-10 17:23:49 +00:00
pf_if.c Resolve conflicts created during the import of pf 3.7 Some features are 2005-05-03 16:43:32 +00:00
pf_ioctl.c Fix stateful filtering of loopback IPv6 traffic to an address not configured 2006-09-06 17:19:45 +00:00
pf_norm.c Loopback pf_norm.c rev. 1.106 from OpenBSD: 2006-03-25 21:15:25 +00:00
pf_osfp.c Resolve conflicts created during the import of pf 3.7 Some features are 2005-05-03 16:43:32 +00:00
pf_subr.c Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf_table.c Make LINT happy. 2005-05-04 15:29:28 +00:00
pf.c Introduce a new entry point, mac_create_mbuf_from_firewall. This entry point 2006-09-12 04:25:13 +00:00
pfvar.h Only decrement the max-src-conn counter for tcp connections that reached 2005-12-25 23:52:00 +00:00