From 91211a55fce8020781f959b16725fd14f3fe866e Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 15 Oct 2015 02:35:04 +0000 Subject: [PATCH] lock needs pledge(proc exec) to use bsd auth system. from trondd --- usr.bin/lock/lock.c | 4 ++-- 1 file 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()))) -- 2.20.1