Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 14:29:49 +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: r193509 - head/sys/rpc
Message-ID:  <200906051429.n55ETnZ0028473@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Fri Jun  5 14:29:49 2009
New Revision: 193509
URL: http://svn.freebsd.org/changeset/base/193509

Log:
  Correct MAC compile problems resulting from the new RPC code copying and
  pasting code from the general socket code without also bringing along
  required opt_mac.h includes.

Modified:
  head/sys/rpc/svc_vc.c

Modified: head/sys/rpc/svc_vc.c
==============================================================================
--- head/sys/rpc/svc_vc.c	Fri Jun  5 14:23:24 2009	(r193508)
+++ head/sys/rpc/svc_vc.c	Fri Jun  5 14:29:49 2009	(r193509)
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/malloc.h>
 #include <sys/mbuf.h>
 #include <sys/mutex.h>
+#include <sys/proc.h>
 #include <sys/protosw.h>
 #include <sys/queue.h>
 #include <sys/socket.h>
@@ -63,6 +64,8 @@ __FBSDID("$FreeBSD$");
 
 #include <rpc/rpc_com.h>
 
+#include <security/mac/mac_framework.h>
+
 static bool_t svc_vc_rendezvous_recv(SVCXPRT *, struct rpc_msg *,
     struct sockaddr **, struct mbuf **);
 static enum xprt_stat svc_vc_rendezvous_stat(SVCXPRT *);
@@ -273,7 +276,7 @@ svc_vc_accept(struct socket *head, struc
 		goto done;
 	}
 #ifdef MAC
-	error = mac_socket_check_accept(td->td_ucred, head);
+	error = mac_socket_check_accept(curthread->td_ucred, head);
 	if (error != 0)
 		goto done;
 #endif



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