summaryrefslogtreecommitdiff
path: root/usr.sbin/eigrpd/eigrpe.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2015-10-10 05:12:34 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2015-10-10 05:12:34 +0000
commitf4662236d85eaece4f37bb7208df4c08302ee27c (patch)
tree606f726a123e583bdbcd5eb71a85fe3b7f17f976 /usr.sbin/eigrpd/eigrpe.c
parent455bfcddf956156edea5e5e16c2ea67df7493ae2 (diff)
Make use of pledge(2).
ok deraadt
Diffstat (limited to 'usr.sbin/eigrpd/eigrpe.c')
-rw-r--r--usr.sbin/eigrpd/eigrpe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/eigrpd/eigrpe.c b/usr.sbin/eigrpd/eigrpe.c
index e0fbc4a2916..eb515a7dc23 100644
--- a/usr.sbin/eigrpd/eigrpe.c
+++ b/usr.sbin/eigrpd/eigrpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpe.c,v 1.4 2015/10/10 05:09:19 renato Exp $ */
+/* $OpenBSD: eigrpe.c,v 1.5 2015/10/10 05:12:33 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -190,6 +190,9 @@ 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)
+ fatal("pledge");
+
event_dispatch();
eigrpe_shutdown();