summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-06-27 09:03:22 +0000
committerpjd <pjd@FreeBSD.org>2004-06-27 09:03:22 +0000
commit5055061c5d6c3ffd4742a08077aad7bdad2b4860 (patch)
treeac397125dfae2ee053542aa81befa15ab36baefb
parent2e75ccba07cbf0b2aaf2d472050735824a1969e1 (diff)
downloadFreeBSD-src-5055061c5d6c3ffd4742a08077aad7bdad2b4860.zip
FreeBSD-src-5055061c5d6c3ffd4742a08077aad7bdad2b4860.tar.gz
Add two missing includes and remove two uneeded.
This is quite serious fix, because even with MAC framework compiled in, MAC entry points in those two files were simply ignored.
-rw-r--r--sys/kern/kern_jail.c3
-rw-r--r--sys/net/if_fwsubr.c2
-rw-r--r--sys/net/if_loop.c1
-rw-r--r--sys/netinet/ip_fastfwd.c1
4 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index d3c55ce..140dc08 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -10,12 +10,15 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_mac.h"
+
#include <sys/param.h>
#include <sys/types.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/sysproto.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/proc.h>
#include <sys/taskqueue.h>
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c
index 7232583..1989c4e 100644
--- a/sys/net/if_fwsubr.c
+++ b/sys/net/if_fwsubr.c
@@ -32,10 +32,12 @@
#include "opt_inet.h"
#include "opt_inet6.h"
+#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index ba7508e..0c266ce 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -38,7 +38,6 @@
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipx.h"
-#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index a73c499..ea14dce 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -80,7 +80,6 @@
#include "opt_ipdivert.h"
#include "opt_ipfilter.h"
#include "opt_ipstealth.h"
-#include "opt_mac.h"
#include "opt_pfil_hooks.h"
#include <sys/param.h>
OpenPOWER on IntegriCloud