Invoke the MAC Framework's mac_socket_create_mbuf() entry point when

generating IPX output for SPX sockets.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2009-06-20 17:44:04 +00:00
parent 3b9fec2ed0
commit 11dd0af11d

View File

@ -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