summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-20 17:42:53 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-20 17:42:53 +0000
commit62711fdfd16c16b620e2e366b1afd1b13a502e40 (patch)
treeba8216d0edf09ba6964c19c8fb3cc516999d1b96 /sys/netipx
parent3e2e3a5984e28b651e636bf94e161c8aeaaf3a93 (diff)
downloadFreeBSD-src-62711fdfd16c16b620e2e366b1afd1b13a502e40.zip
FreeBSD-src-62711fdfd16c16b620e2e366b1afd1b13a502e40.tar.gz
Invoke the MAC Framework's mac_socket_create_mbuf() entry point when
generating IPX output for raw and datagram IPX sockets. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_usrreq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c
index a42f4d2..ef9c1ad 100644
--- a/sys/netipx/ipx_usrreq.c
+++ b/sys/netipx/ipx_usrreq.c
@@ -90,6 +90,8 @@ __FBSDID("$FreeBSD$");
#include <netipx/ipx_pcb.h>
#include <netipx/ipx_var.h>
+#include <security/mac/mac_framework.h>
+
/*
* IPX protocol implementation.
*/
@@ -577,6 +579,9 @@ ipx_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
* used by ipx_pcbconnect() and ipx_pcbdisconnect(), just the IPX
* pcb lock.
*/
+#ifdef MAC
+ mac_socket_create_mbuf(so, m);
+#endif
if (nam != NULL) {
IPX_LIST_LOCK();
IPX_LOCK(ipxp);
OpenPOWER on IntegriCloud