summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-27 21:12:09 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-27 21:12:09 +0000
commitd3cfaca5e3b3a623d0a4880733e4b6e0cf11afef (patch)
tree8bf632ce5ba25066ea9282a48fad584274640e62
parent7a39b9176a2952ab2a3af96d4952a54648c36f00 (diff)
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.c4
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) {