diff options
author | friehm <friehm@cvs.openbsd.org> | 2018-07-10 21:21:57 +0000 |
---|---|---|
committer | friehm <friehm@cvs.openbsd.org> | 2018-07-10 21:21:57 +0000 |
commit | 6a830b23dfa5a338705c9f41feebee5a338265ad (patch) | |
tree | 91a0473bf11fb3cdf6620445a36efe2c17e940f8 /usr.sbin/ospf6d/ospfe.c | |
parent | 9b1eec98950616aff7d5abed9c5f8c877691ee99 (diff) |
pledge(2)
Looks great! deraadt@
OK florian
OK remi@
Diffstat (limited to 'usr.sbin/ospf6d/ospfe.c')
-rw-r--r-- | usr.sbin/ospf6d/ospfe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c index d53ffbbf723..98e42409a07 100644 --- a/usr.sbin/ospf6d/ospfe.c +++ b/usr.sbin/ospf6d/ospfe.c @@ -1,4 +1,4 @@ -/* $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> @@ -133,6 +133,9 @@ ospfe(struct ospfd_conf *xconf, int pipe_parent2ospfe[2], int pipe_ospfe2rde[2], 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); |