summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-20 17:44:04 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-20 17:44:04 +0000
commit54387df05ffd2fc7b79ca9fd0d98c13ed5030c87 (patch)
tree6cc7f6c32789418280a7d2d68971709e94b2d9d3 /sys/netipx
parent62711fdfd16c16b620e2e366b1afd1b13a502e40 (diff)
downloadFreeBSD-src-54387df05ffd2fc7b79ca9fd0d98c13ed5030c87.zip
FreeBSD-src-54387df05ffd2fc7b79ca9fd0d98c13ed5030c87.tar.gz
Invoke the MAC Framework's mac_socket_create_mbuf() entry point when
generating IPX output for SPX sockets. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/spx_usrreq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 97c0a19..5d17f1e 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -89,6 +89,8 @@ __FBSDID("$FreeBSD$");
#include <netipx/spx_timer.h>
#include <netipx/spx_var.h>
+#include <security/mac/mac_framework.h>
+
/*
* SPX protocol implementation.
*/
@@ -813,6 +815,10 @@ send:
if (so->so_options & SO_DEBUG || traceallspxs)
spx_trace(SA_OUTPUT, cb->s_state, cb, si, 0);
+#ifdef MAC
+ mac_socket_create_mbuf(so, m);
+#endif
+
if (so->so_options & SO_DONTROUTE)
error = ipx_outputfl(m, NULL, IPX_ROUTETOIF);
else
OpenPOWER on IntegriCloud