summaryrefslogtreecommitdiff
path: root/usr.sbin/rebound
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2018-02-10 17:51:38 +0000
committeranton <anton@cvs.openbsd.org>2018-02-10 17:51:38 +0000
commit83e5931ca2f6296ed5d81cb43b7d66a5bdabdc16 (patch)
tree2e49f625adeffe6ffb83a82a93eb95ba7a735c4c /usr.sbin/rebound
parent11c4b8d9594ce51c9da30598858a76a8c973dac9 (diff)
Pledge monitoring process; ok tedu@
Diffstat (limited to 'usr.sbin/rebound')
-rw-r--r--usr.sbin/rebound/rebound.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index d27e0651832..dc7756e8fc9 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.93 2018/02/07 01:02:46 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.94 2018/02/10 17:51:37 anton Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -886,6 +886,9 @@ monitorloop(int ud, int ld, int ud6, int ld6, const char *confname)
int conffd = -1;
struct timespec ts, *timeout = NULL;
+ if (pledge("stdio rpath proc exec", NULL) == -1)
+ err(1, "pledge");
+
kq = kqueue();
/* catch these signals with kevent */