From 11abec2e94d6e8c4fe21fbf69e4a7aa125f3f1c9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 10 Oct 2015 18:58:54 +0000 Subject: pledge "stdio getpw rpath wpath cpath fattr". doug pointed out getpw* use, and fattr for chmod. doug --- usr.bin/rcs/rcsprog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index adad6a1d596..f6a1996abf3 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.156 2015/06/13 20:15:21 nicm Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.157 2015/10/10 18:58:53 deraadt Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. @@ -128,6 +128,9 @@ main(int argc, char **argv) char **cmd_argv; int ret, cmd_argc; + if (pledge("stdio getpw rpath wpath cpath fattr", NULL) == -1) + err(1, "pledge"); + ret = -1; rcs_optind = 1; SLIST_INIT(&temp_files); -- cgit v1.2.3