summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2018-02-10 17:51:37 +0000
committeranton <anton@openbsd.org>2018-02-10 17:51:37 +0000
commit86070771eef1c6518b5a0ed036b5405958ac34b9 (patch)
tree27035ee0dd3a51a842eb05012d3f80e89fec2aa2
parentMerge license blocks now that they are identical. (diff)
downloadwireguard-openbsd-86070771eef1c6518b5a0ed036b5405958ac34b9.tar.xz
wireguard-openbsd-86070771eef1c6518b5a0ed036b5405958ac34b9.zip
Pledge monitoring process; ok tedu@
-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 */