diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-12 02:02:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-12 02:02:01 +0000 |
commit | feb137bbf089f50f134dccc29ff5538c9686e0cb (patch) | |
tree | 2ed9fe6d059f8dd900659ca43c0cfce3f4c3e8b2 /usr.sbin | |
parent | 6c21dbac88bde2b8b85f851cb93ea89a3fa035ec (diff) |
pledge to only use "stdio rpath"; rpath is for readig the wtmp files.
ok doug
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ac/ac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index d1628e62b6f..3e9da2f9f5d 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -200,6 +200,9 @@ main(int argc, char *argv[]) FILE *fp; int c; + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + fp = NULL; while ((c = getopt(argc, argv, "Ddpt:w:")) != -1) { switch (c) { |