Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2009 17:44:04 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194545 - head/sys/netipx
Message-ID:  <200906201744.n5KHi4ft082572@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906201744.n5KHi4ft082572>