diff options
author | Tim van der Molen <tim@cvs.openbsd.org> | 2015-10-12 14:33:14 +0000 |
---|---|---|
committer | Tim van der Molen <tim@cvs.openbsd.org> | 2015-10-12 14:33:14 +0000 |
commit | ccae52ff7da9d9be61f7125e58b2036ab438d55f (patch) | |
tree | 05db284f748093c3db1b377ef4376997fd86c714 /usr.bin/skey | |
parent | 145b73215daeb386ebdead419637ec9991f164de (diff) |
Pledge "stdio wpath tty"; "awesome" deraadt@
Diffstat (limited to 'usr.bin/skey')
-rw-r--r-- | usr.bin/skey/skey.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/skey/skey.c b/usr.bin/skey/skey.c index 1f998b09a63..2c6cd61f722 100644 --- a/usr.bin/skey/skey.c +++ b/usr.bin/skey/skey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skey.c,v 1.31 2015/10/09 21:59:34 tim Exp $ */ +/* $OpenBSD: skey.c,v 1.32 2015/10/12 14:33:13 tim Exp $ */ /* * OpenBSD S/Key (skey.c) * @@ -43,6 +43,9 @@ main(int argc, char *argv[]) char buf[33], *seed, *slash, *algo; const char *errstr; + if (pledge("stdio wpath tty", NULL) == -1) + err(1, "pledge"); + /* If we were called as otp-METHOD, set algorithm based on that */ if (strncmp(__progname, "otp-", 4) == 0) { algo = __progname + 4; |