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/rde.c | |
parent | 9b1eec98950616aff7d5abed9c5f8c877691ee99 (diff) |
pledge(2)
Looks great! deraadt@
OK florian
OK remi@
Diffstat (limited to 'usr.sbin/ospf6d/rde.c')
-rw-r--r-- | usr.sbin/ospf6d/rde.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c index 68317d54661..7e630e6ed4e 100644 --- a/usr.sbin/ospf6d/rde.c +++ b/usr.sbin/ospf6d/rde.c @@ -1,4 +1,4 @@ -/* $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> @@ -156,6 +156,9 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2], 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); |