diff options
author | 2015-11-03 20:33:30 +0000 | |
---|---|---|
committer | 2015-11-03 20:33:30 +0000 | |
commit | 19ee43d7c4f78b37c820867a3fc4619e5b92d7af (patch) | |
tree | d7e3e023f69281cb255257ac41129b50d0b2104a | |
parent | improve the load balancing text; ok mpi (diff) | |
download | wireguard-openbsd-19ee43d7c4f78b37c820867a3fc4619e5b92d7af.tar.xz wireguard-openbsd-19ee43d7c4f78b37c820867a3fc4619e5b92d7af.zip |
AF_UNIX connect is a "unix" operation, not "rpath wpath"
-rw-r--r-- | sys/kern/uipc_usrreq.c | 4 |
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; |