diff options
author | 2015-10-15 02:35:04 +0000 | |
---|---|---|
committer | 2015-10-15 02:35:04 +0000 | |
commit | 91211a55fce8020781f959b16725fd14f3fe866e (patch) | |
tree | 9ad7815dc1308965faed17f1350e6484344e2b1d | |
parent | Fix a crash that occurs when printing the filename in a malformed NFS (diff) | |
download | wireguard-openbsd-91211a55fce8020781f959b16725fd14f3fe866e.tar.xz wireguard-openbsd-91211a55fce8020781f959b16725fd14f3fe866e.zip |
lock needs pledge(proc exec) to use bsd auth system. from trondd
-rw-r--r-- | usr.bin/lock/lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c index 9c74e87b54c..994cdeeef69 100644 --- a/usr.bin/lock/lock.c +++ b/usr.bin/lock/lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.c,v 1.31 2015/10/10 20:35:01 deraadt Exp $ */ +/* $OpenBSD: lock.c,v 1.32 2015/10/15 02:35:04 tedu Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* @@ -90,7 +90,7 @@ main(int argc, char *argv[]) usemine = 0; no_timeout = 0; - if (pledge("stdio rpath wpath getpw tty", NULL) == -1) + if (pledge("stdio rpath wpath getpw tty proc exec", NULL) == -1) err(1, "pledge"); if (!(pw = getpwuid(getuid()))) |