summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-05 14:29:49 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-05 14:29:49 +0000
commit6f068cf2c4dc1df59c250d88b24eda98b5141e43 (patch)
treef83dd12a9797a4df246e0d1c2cbd9acad3abb321 /sys/rpc
parent5ed24cd3e4f4061ff29bcd2969c745e11a54fe44 (diff)
downloadFreeBSD-src-6f068cf2c4dc1df59c250d88b24eda98b5141e43.zip
FreeBSD-src-6f068cf2c4dc1df59c250d88b24eda98b5141e43.tar.gz
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.
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/svc_vc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c
index 7249270..d8059b3 100644
--- a/sys/rpc/svc_vc.c
+++ b/sys/rpc/svc_vc.c
@@ -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, struct socket **sop)
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
OpenPOWER on IntegriCloud