Author: rwatson Date: Sat Jun 20 17:44:04 2009 New Revision: 194545 URL: http://svn.freebsd.org/changeset/base/194545
Log: Invoke the MAC Framework's mac_socket_create_mbuf() entry point when generating IPX output for SPX sockets. Obtained from: TrustedBSD Project Modified: head/sys/netipx/spx_usrreq.c Modified: head/sys/netipx/spx_usrreq.c ============================================================================== --- head/sys/netipx/spx_usrreq.c Sat Jun 20 17:42:53 2009 (r194544) +++ head/sys/netipx/spx_usrreq.c Sat Jun 20 17:44:04 2009 (r194545) @@ -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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"