summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-02 20:49:14 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-02 20:49:14 +0000
commit1bd16d78e2a55104eb99d69e442460fe637caab9 (patch)
tree8ea814e80916fab91609a12d209740e7fef1bb6c /sys
parentd429ea44eab2435ddca3fbc383d024b971e24b88 (diff)
downloadFreeBSD-src-1bd16d78e2a55104eb99d69e442460fe637caab9.zip
FreeBSD-src-1bd16d78e2a55104eb99d69e442460fe637caab9.tar.gz
Introduce support for Mandatory Access Control and extensible
kernel access control. When generating nd6 output on an interface, label the packet appropriately. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 58597d5..33913d4 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -40,10 +40,12 @@
#include "opt_inet.h"
#include "opt_inet6.h"
+#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/callout.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
@@ -2015,6 +2017,9 @@ nd6_output(ifp, origifp, m0, dst, rt0)
sendpkt:
+#ifdef MAC
+ mac_create_mbuf_linklayer(ifp, m);
+#endif
if ((ifp->if_flags & IFF_LOOPBACK) != 0) {
return((*ifp->if_output)(origifp, m, (struct sockaddr *)dst,
rt));
OpenPOWER on IntegriCloud