From 51bb89dbdda6a7602c0552fd04f1bed21e632875 Mon Sep 17 00:00:00 2001 From: bluhm Date: Thu, 15 Oct 2015 17:23:09 +0000 Subject: [PATCH] Plegde x99token with "stdio rpath wpath cpath fattr getpw tty". with and OK deraadt@ --- usr.bin/x99token/x99token.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/x99token/x99token.c b/usr.bin/x99token/x99token.c index 533fa79534c..eb5f68f4fc8 100644 --- a/usr.bin/x99token/x99token.c +++ b/usr.bin/x99token/x99token.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x99token.c,v 1.10 2015/01/16 06:40:14 deraadt Exp $ */ +/* $OpenBSD: x99token.c,v 1.11 2015/10/15 17:23:09 bluhm Exp $ */ /* * X9.9 calculator @@ -46,6 +46,9 @@ main(int argc, char **argv) unsigned int pin; struct passwd *pwd; + if (pledge("stdio rpath wpath cpath fattr getpw tty", NULL) == -1) + err(1, "pledge"); + while ((i = getopt(argc, argv, "dk:in:")) != -1) { switch (i) { case 'k': -- 2.20.1