diff options
author | anton <anton@cvs.openbsd.org> | 2018-02-10 17:51:38 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2018-02-10 17:51:38 +0000 |
commit | 83e5931ca2f6296ed5d81cb43b7d66a5bdabdc16 (patch) | |
tree | 2e49f625adeffe6ffb83a82a93eb95ba7a735c4c /usr.sbin/rebound | |
parent | 11c4b8d9594ce51c9da30598858a76a8c973dac9 (diff) |
Pledge monitoring process; ok tedu@
Diffstat (limited to 'usr.sbin/rebound')
-rw-r--r-- | usr.sbin/rebound/rebound.c | 5 |
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 */ |