diff options
author | 2015-11-27 21:12:08 +0000 | |
---|---|---|
committer | 2015-11-27 21:12:08 +0000 | |
commit | eca599ca92586f6243552bc3a0df7355d20663ec (patch) | |
tree | 2a20663527be281ee4ee45509bb350f863617c0b | |
parent | after reading a too long line, restart at the beginning of the buffer so (diff) | |
download | wireguard-openbsd-eca599ca92586f6243552bc3a0df7355d20663ec.tar.xz wireguard-openbsd-eca599ca92586f6243552bc3a0df7355d20663ec.zip |
add getpw to pledge. rpath would normally suffice, but there's some double
checking code in snapshots, and it serves as a useful annotation.
from Carlin Bingham
-rw-r--r-- | usr.sbin/rebound/rebound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c index ec3f78d8722..78246eadc97 100644 --- a/usr.sbin/rebound/rebound.c +++ b/usr.sbin/rebound/rebound.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rebound.c,v 1.45 2015/11/24 00:21:55 deraadt Exp $ */ +/* $OpenBSD: rebound.c,v 1.46 2015/11/27 21:12:08 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -616,7 +616,7 @@ main(int argc, char **argv) struct timespec ts, *timeout = NULL; const char *conffile = "/etc/rebound.conf"; - if (pledge("stdio rpath inet proc id", NULL) == -1) + if (pledge("stdio rpath getpw inet proc id", NULL) == -1) logerr("pledge failed"); while ((ch = getopt(argc, argv, "c:d")) != -1) { |