diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 20:57:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 20:57:01 +0000 |
commit | 9b1bc1e60003cc47bfdb81e4d056a8d74bc48dd1 (patch) | |
tree | 3f88e2b383895b0ebe7ec8d29c57b00493830e38 /usr.bin | |
parent | 3517be6f8f73ef685d69e2d7a9583d8e799718e2 (diff) |
pledge "stdio rpath wpath cpath proc exec"; this spawns cpp.
ok doug
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rpcgen/rpc_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c index dec139fc6a8..6003e1133a7 100644 --- a/usr.bin/rpcgen/rpc_main.c +++ b/usr.bin/rpcgen/rpc_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_main.c,v 1.30 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: rpc_main.c,v 1.31 2015/10/10 20:57:00 deraadt Exp $ */ /* $NetBSD: rpc_main.c,v 1.9 1996/02/19 11:12:43 pk Exp $ */ /* @@ -140,6 +140,9 @@ main(int argc, char *argv[]) { struct commandline cmd; + if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1) + perror("pledge"); + (void) memset((char *) &cmd, 0, sizeof(struct commandline)); clear_args(); if (!parseargs(argc, argv, &cmd)) |