summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-10-15 02:35:04 +0000
committertedu <tedu@openbsd.org>2015-10-15 02:35:04 +0000
commit91211a55fce8020781f959b16725fd14f3fe866e (patch)
tree9ad7815dc1308965faed17f1350e6484344e2b1d
parentFix a crash that occurs when printing the filename in a malformed NFS (diff)
downloadwireguard-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.c4
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())))