Looks great! deraadt@
OK florian
OK remi@
-/* $OpenBSD: ospfe.c,v 1.51 2017/08/12 16:27:50 benno Exp $ */
+/* $OpenBSD: ospfe.c,v 1.52 2018/07/10 21:21:56 friehm Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
+ if (pledge("stdio inet mcast", NULL) == -1)
+ fatal("pledge");
+
event_init();
nbr_init(NBR_HASHSIZE);
lsa_cache_init(LSA_HASHSIZE);
-/* $OpenBSD: rde.c,v 1.76 2018/06/12 20:12:36 remi Exp $ */
+/* $OpenBSD: rde.c,v 1.77 2018/07/10 21:21:56 friehm Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@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();
rde_nbr_init(NBR_HASHSIZE);
lsa_init(&asext_tree);