From d3cfaca5e3b3a623d0a4880733e4b6e0cf11afef Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 27 Nov 2015 21:12:09 +0000 Subject: 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 --- usr.sbin/rebound/rebound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 * @@ -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) { -- cgit v1.2.3