summaryrefslogtreecommitdiffstats
path: root/usr.sbin/eigrpd
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2015-10-22 10:42:14 +0000
committerrenato <renato@openbsd.org>2015-10-22 10:42:14 +0000
commit67bbb3f4ba009eafcd21f34426ca4789e8e8534b (patch)
tree07415ace0efa0cc32695f682b25f65ce77a37af3 /usr.sbin/eigrpd
parentAfter some consideration, simply allow TIOCSCTTY in the "tty" pledge. (diff)
downloadwireguard-openbsd-67bbb3f4ba009eafcd21f34426ca4789e8e8534b.tar.xz
wireguard-openbsd-67bbb3f4ba009eafcd21f34426ca4789e8e8534b.zip
The eigrpe process also needs to pledge "cpath" for unlinking the
control socket.
Diffstat (limited to 'usr.sbin/eigrpd')
-rw-r--r--usr.sbin/eigrpd/eigrpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/eigrpd/eigrpe.c b/usr.sbin/eigrpd/eigrpe.c
index 0aae0686767..c17b1677431 100644
--- a/usr.sbin/eigrpd/eigrpe.c
+++ b/usr.sbin/eigrpd/eigrpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpe.c,v 1.6 2015/10/21 03:52:12 renato Exp $ */
+/* $OpenBSD: eigrpe.c,v 1.7 2015/10/22 10:42:14 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -190,7 +190,7 @@ eigrpe(struct eigrpd_conf *xconf, int pipe_parent2eigrpe[2], int pipe_eigrpe2rde
TAILQ_FOREACH(iface, &econf->iface_list, entry)
if_init(xconf, iface);
- if (pledge("stdio inet mcast", NULL) == -1)
+ if (pledge("stdio cpath inet mcast", NULL) == -1)
fatal("pledge");
event_dispatch();