summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-03 20:33:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-03 20:33:31 +0000
commitf0a687b62f4d4b3d5989e37621c5bbb77a2c1c91 (patch)
treeb87424edc9c99a5826cd339f36bf581a0eee8046 /sys/kern/uipc_usrreq.c
parent7c8fb6a5a7d55ad2bd2404477e4f0d5b19bb35c7 (diff)
AF_UNIX connect is a "unix" operation, not "rpath wpath"
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 94500658fa9..46a88830f73 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_usrreq.c,v 1.93 2015/11/02 16:31:55 semarie Exp $ */
+/* $OpenBSD: uipc_usrreq.c,v 1.94 2015/11/03 20:33:30 deraadt Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
/*
@@ -494,7 +494,7 @@ unp_connect(struct socket *so, struct mbuf *nam, struct proc *p)
return (EINVAL);
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, soun->sun_path, p);
- nd.ni_pledge = PLEDGE_RPATH | PLEDGE_WPATH;
+ nd.ni_pledge = PLEDGE_UNIX;
if ((error = namei(&nd)) != 0)
return (error);
vp = nd.ni_vp;