diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:49:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:49:24 +0000 |
commit | c2db8086781aac917a8c5a37f085958a4300341e (patch) | |
tree | a068160d476b10f2d080bd379a73b74b4f785a43 | |
parent | d10c958965bcf1ca39b219baaa5b29e74b7e7878 (diff) |
pledge "stdio proc exec". relies on two recent kernel fixes.
-rw-r--r-- | usr.bin/time/time.c | 4 |
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) { |