diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-07-31 16:46:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-07-31 16:46:56 +0000 |
commit | 47bde04257d23a7d89884af88c4bc8a9a345668b (patch) | |
tree | ce12cfaadbe405ad5fbffff07f76f2815d0f9aee /sys/netinet | |
parent | ea680c3385a7aa386d4d99baf10c83df34950c18 (diff) | |
download | FreeBSD-src-47bde04257d23a7d89884af88c4bc8a9a345668b.zip FreeBSD-src-47bde04257d23a7d89884af88c4bc8a9a345668b.tar.gz |
Introduce support for Mandatory Access Control and extensible
kernel access control.
When generating an IGMP message, invoke a MAC entry point to permit
the MAC framework to label its mbuf appropriately for the target
interface.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/igmp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 12a1552..2cf1e7c 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -49,8 +49,11 @@ * MULTICAST Revision: 3.5.1.4 */ +#include "opt_mac.h" + #include <sys/param.h> #include <sys/systm.h> +#include <sys/mac.h> #include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/socket.h> @@ -447,6 +450,9 @@ igmp_sendpkt(inm, type, addr) return; m->m_pkthdr.rcvif = loif; +#ifdef MAC + mac_create_mbuf_linklayer(inm->inm_ifp, m); +#endif m->m_pkthdr.len = sizeof(struct ip) + IGMP_MINLEN; MH_ALIGN(m, IGMP_MINLEN + sizeof(struct ip)); m->m_data += sizeof(struct ip); |