From 4823dc0ddf08099cd78e73de28f99f459ae836df Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 12 Oct 2015 02:02:00 +0000 Subject: [PATCH] pledge to only use "stdio rpath"; rpath is for readig the wtmp files. ok doug --- usr.sbin/ac/ac.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.20.1