svn commit: r193509 - head/sys/rpc
Robert Watson
rwatson at FreeBSD.org
Fri Jun 5 14:29:50 UTC 2009
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
More information about the svn-src-head
mailing list