-/* $OpenBSD: eigrpd.c,v 1.1 2015/10/02 04:26:47 renato Exp $ */
+/* $OpenBSD: eigrpd.c,v 1.2 2015/10/10 05:12:33 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
eigrpd_conf->rdomain) == -1)
fatalx("kr_init failed");
+ if (pledge("stdio proc", NULL) == -1)
+ fatal("pledge");
+
event_dispatch();
eigrpd_shutdown();
-/* $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>
TAILQ_FOREACH(iface, &econf->iface_list, entry)
if_init(xconf, iface);
+ if (pledge("stdio inet mcast", NULL) == -1)
+ fatal("pledge");
+
event_dispatch();
eigrpe_shutdown();
-/* $OpenBSD: rde.c,v 1.3 2015/10/05 01:59:33 renato Exp $ */
+/* $OpenBSD: rde.c,v 1.4 2015/10/10 05:12:33 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
+ if (pledge("stdio", NULL) == -1)
+ fatal("pledge");
+
event_init();
/* setup signal handler */