mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
Pledge "stdio wpath tty"; "awesome" deraadt@
This commit is contained in:
parent
6a1f973fda
commit
06cfee9933
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user