diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-07-31 16:45:16 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-07-31 16:45:16 +0000 |
commit | ea680c3385a7aa386d4d99baf10c83df34950c18 (patch) | |
tree | 50febf15e7ada3a71e3802b2a841a8cadf3ce01c | |
parent | a42d325ed2208ceb8a8c9d90d91c9599269c8ccd (diff) | |
download | FreeBSD-src-ea680c3385a7aa386d4d99baf10c83df34950c18.zip FreeBSD-src-ea680c3385a7aa386d4d99baf10c83df34950c18.tar.gz |
Introduce support for Mandatory Access Control and extensible
kernel access control.
When generating an ARP query, invoke a MAC entry point to permit the
MAC framework to label its mbuf appropriately for the interface.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
-rw-r--r-- | sys/netinet/if_ether.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 77eee3c..691bbff 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -42,12 +42,14 @@ #include "opt_inet.h" #include "opt_bdg.h" +#include "opt_mac.h" #include <sys/param.h> #include <sys/kernel.h> #include <sys/queue.h> #include <sys/sysctl.h> #include <sys/systm.h> +#include <sys/mac.h> #include <sys/mbuf.h> #include <sys/malloc.h> #include <sys/socket.h> @@ -304,6 +306,9 @@ arprequest(ifp, sip, tip, enaddr) if ((m = m_gethdr(M_DONTWAIT, MT_DATA)) == NULL) return; m->m_pkthdr.rcvif = (struct ifnet *)0; +#ifdef MAC + mac_create_mbuf_linklayer(ifp, m); +#endif switch (ifp->if_type) { case IFT_ARCNET: ar_hrd = htons(ARPHRD_ARCNET); |