From f3104bbd69e0e5f97ac55ffa8822e7d2e9157a2d Mon Sep 17 00:00:00 2001 From: bluhm Date: Sat, 17 Oct 2015 19:50:47 +0000 Subject: [PATCH] login_token needs pledge "flock" now. OK millert@ --- libexec/login_token/login_token.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/login_token/login_token.c b/libexec/login_token/login_token.c index 668baaf14dd..10a84c45689 100644 --- a/libexec/login_token/login_token.c +++ b/libexec/login_token/login_token.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_token.c,v 1.12 2015/10/15 20:14:23 bluhm Exp $ */ +/* $OpenBSD: login_token.c,v 1.13 2015/10/17 19:50:47 bluhm Exp $ */ /*- * Copyright (c) 1995, 1996 Berkeley Software Design, Inc. All rights reserved. @@ -81,7 +81,7 @@ main(int argc, char *argv[]) if (setrlimit(RLIMIT_CORE, &cds) < 0) syslog(LOG_ERR, "couldn't set core dump size to 0: %m"); - if (pledge("stdio rpath wpath cpath fattr getpw tty", NULL) == -1) + if (pledge("stdio rpath wpath cpath fattr flock getpw tty", NULL) == -1) err(1, "pledge"); (void)sigprocmask(SIG_BLOCK, &blockset, NULL); -- 2.20.1