diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-29 02:58:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-29 02:58:01 +0000 |
commit | 8c933349cd4b593155ad8da30c49c823c2598687 (patch) | |
tree | 4add7d18fdeec64efe6800a32cf1b2a1b2005881 /usr.bin/cap_mkdb | |
parent | b7703a285ccde8b3f13101f7e02f990ed6b46eb9 (diff) |
Pretty sure this can pledge "stdio rpath wpath cpath". Commiting to start
the review for regressions...
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index 7e9535ba1e3..7175d2603d6 100644 --- a/usr.bin/cap_mkdb/cap_mkdb.c +++ b/usr.bin/cap_mkdb/cap_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cap_mkdb.c,v 1.19 2015/01/16 06:40:06 deraadt Exp $ */ +/* $OpenBSD: cap_mkdb.c,v 1.20 2015/10/29 02:58:00 deraadt Exp $ */ /* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */ /*- @@ -77,6 +77,9 @@ main(int argc, char *argv[]) { int c; + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); + capname = NULL; while ((c = getopt(argc, argv, "f:iv")) != -1) { switch(c) { |