diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-15 02:50:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-15 02:50:00 +0000 |
commit | d80676da5e414fe62f5c9c19ba0b1430b2b33334 (patch) | |
tree | 8619a4e4b13c2416636806a009e48991189a1cfa /libexec/ld.so/ldconfig | |
parent | 846719835bc5b8f76b6aa04c5833fa297fb42c15 (diff) |
pledge "stdio rpath wpath cpath tmppath fattr"
ok guenther
Diffstat (limited to 'libexec/ld.so/ldconfig')
-rw-r--r-- | libexec/ld.so/ldconfig/ldconfig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/ld.so/ldconfig/ldconfig.c b/libexec/ld.so/ldconfig/ldconfig.c index f007002a0d3..28909689a15 100644 --- a/libexec/ld.so/ldconfig/ldconfig.c +++ b/libexec/ld.so/ldconfig/ldconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldconfig.c,v 1.34 2015/01/18 04:48:24 deraadt Exp $ */ +/* $OpenBSD: ldconfig.c,v 1.35 2015/11/15 02:49:59 deraadt Exp $ */ /* * Copyright (c) 1993,1995 Paul Kranenburg @@ -102,6 +102,9 @@ main(int argc, char *argv[]) int i, c; int rval = 0; + if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1) + err(1, "pledge"); + while ((c = getopt(argc, argv, "DmPrRsSUv")) != -1) { switch (c) { case 'R': |