aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ipfw
diff options
context:
space:
mode:
authorChristian S.J. Peron <csjp@FreeBSD.org>2006-09-12 04:25:13 +0000
committerChristian S.J. Peron <csjp@FreeBSD.org>2006-09-12 04:25:13 +0000
commitd94f2a68f8c39a5abc9ba9c58e959f31bc90194d (patch)
treebfad0bcbfb5566e8fc5f5992840f671a03dba9ea /sys/modules/ipfw
parent3bb00f61a274685858e022369c683c0bb1af8620 (diff)
downloadsrc-d94f2a68f8c39a5abc9ba9c58e959f31bc90194d.tar.gz
src-d94f2a68f8c39a5abc9ba9c58e959f31bc90194d.zip
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
Notes
Notes: svn path=/head/; revision=162238
Diffstat (limited to 'sys/modules/ipfw')
-rw-r--r--sys/modules/ipfw/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile
index 3a305f9ba792..92bad7542c76 100644
--- a/sys/modules/ipfw/Makefile
+++ b/sys/modules/ipfw/Makefile
@@ -6,7 +6,7 @@
KMOD= ipfw
SRCS= ip_fw2.c ip_fw_pfil.c
-SRCS+= opt_inet6.h opt_ipsec.h
+SRCS+= opt_inet6.h opt_ipsec.h opt_mac.h
CFLAGS+= -DIPFIREWALL
#