Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2009 17:42:54 +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: r194544 - head/sys/netipx
Message-ID:  <200906201742.n5KHgs7H082499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sat Jun 20 17:42:53 2009
New Revision: 194544
URL: http://svn.freebsd.org/changeset/base/194544

Log:
  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

Modified:
  head/sys/netipx/ipx_usrreq.c

Modified: head/sys/netipx/ipx_usrreq.c
==============================================================================
--- head/sys/netipx/ipx_usrreq.c	Sat Jun 20 17:28:38 2009	(r194543)
+++ head/sys/netipx/ipx_usrreq.c	Sat Jun 20 17:42:53 2009	(r194544)
@@ -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, s
 	 * 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);



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