summaryrefslogtreecommitdiffstats
path: root/sys/net/bsd_comp.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-07-31 16:13:13 +0000
committerrwatson <rwatson@FreeBSD.org>2002-07-31 16:13:13 +0000
commit699db787dcb1ae1157766b244949fbba65f9c75a (patch)
tree8f39868b3b0a24b3617fcef5bd8543074d8efb53 /sys/net/bsd_comp.c
parent7a94e47d73842b2ec4cd04f5a48dd0902cfddd0c (diff)
downloadFreeBSD-src-699db787dcb1ae1157766b244949fbba65f9c75a.zip
FreeBSD-src-699db787dcb1ae1157766b244949fbba65f9c75a.tar.gz
Introduce support for Mandatory Access Control and extensible
kernel access control. When decompressing data from one mbuf into another mbuf, preserve the mbuf label by copying it to the new mbuf. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/net/bsd_comp.c')
-rw-r--r--sys/net/bsd_comp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/bsd_comp.c b/sys/net/bsd_comp.c
index 57805a2..910e27a 100644
--- a/sys/net/bsd_comp.c
+++ b/sys/net/bsd_comp.c
@@ -43,9 +43,12 @@
* $FreeBSD$
*/
+#include "opt_mac.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mutex.h>
@@ -879,6 +882,9 @@ bsd_decompress(state, cmp, dmpp)
dmp->m_data += db->hdrlen;
wptr = mtod(dmp, u_char *);
space = M_TRAILINGSPACE(dmp) - PPP_HDRLEN + 1;
+#ifdef MAC
+ mac_create_mbuf_from_mbuf(cmp, dmp);
+#endif
/*
* Fill in the ppp header, but not the last byte of the protocol
OpenPOWER on IntegriCloud