summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-01 13:49:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-01 13:49:01 +0000
commit5d5313cbf4ceef05a58ba6b1fce6828b5adbe9cf (patch)
tree3194a6c51bacb6c5a79a3125cfc91486444ad879 /sys/kern
parent4e538814204ddcfe296e2290abfc737361241862 (diff)
bind() on AF_UNIX should set PLEDGE_UNIX not PLEDGE_CPATH; ok semarie
Diffstat (limited to 'sys/kern')
-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 4bd71c87091..d14b2a5b441 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_usrreq.c,v 1.90 2015/10/25 20:39:54 deraadt Exp $ */
+/* $OpenBSD: uipc_usrreq.c,v 1.91 2015/11/01 13:49:00 deraadt Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
/*
@@ -434,7 +434,7 @@ unp_bind(struct unpcb *unp, struct mbuf *nam, struct proc *p)
/* Fixup sun_len to keep it in sync with m_len. */
soun->sun_len = nam2->m_len;
- p->p_pledgenote = PLEDGE_CPATH;
+ p->p_pledgenote = PLEDGE_UNIX;
NDINIT(&nd, CREATE, NOFOLLOW | LOCKPARENT, UIO_SYSSPACE,
soun->sun_path, p);
/* SHOULD BE ABLE TO ADOPT EXISTING AND wakeup() ALA FIFO's */