summaryrefslogtreecommitdiff
path: root/usr.bin/time
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 14:49:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 14:49:24 +0000
commitc2db8086781aac917a8c5a37f085958a4300341e (patch)
treea068160d476b10f2d080bd379a73b74b4f785a43 /usr.bin/time
parentd10c958965bcf1ca39b219baaa5b29e74b7e7878 (diff)
pledge "stdio proc exec". relies on two recent kernel fixes.
Diffstat (limited to 'usr.bin/time')
-rw-r--r--usr.bin/time/time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c
index e18653d537d..d3b4659439f 100644
--- a/usr.bin/time/time.c
+++ b/usr.bin/time/time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.c,v 1.20 2015/01/16 06:40:13 deraadt Exp $ */
+/* $OpenBSD: time.c,v 1.21 2015/10/10 14:49:23 deraadt Exp $ */
/* $NetBSD: time.c,v 1.7 1995/06/27 00:34:00 jtc Exp $ */
/*
@@ -56,6 +56,8 @@ main(int argc, char *argv[])
struct rusage ru;
int exitonsig = 0;
+ if (pledge("stdio proc exec", NULL) == -1)
+ err(1, "pledge");
while ((ch = getopt(argc, argv, "lp")) != -1) {
switch(ch) {