diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2019-03-25 15:45:19 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2019-03-25 15:45:19 +0000 |
commit | 74bcf79bb2c489ae9bfe6b634d3563708e08cdea (patch) | |
tree | db9e788fcf6eaf749b6a37c26b2a22805b1a381b /usr.sbin | |
parent | ff53821561174fe82dad27ef57e46a7a4cdbbc24 (diff) |
unveiling _PATH_MASTERPASSWD_LOCK requires an "r" permission
as well in order to be able to do stat(1) on the lock file
ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/vipw/vipw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index 26a0d24ea42..83ba0c117c9 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vipw.c,v 1.22 2018/09/27 06:52:15 mestre Exp $ */ +/* $OpenBSD: vipw.c,v 1.23 2019/03/25 15:45:18 robert Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -63,7 +63,7 @@ main(int argc, char *argv[]) if (argc != 0) usage(); - if (unveil(_PATH_MASTERPASSWD_LOCK, "wc") == -1) + if (unveil(_PATH_MASTERPASSWD_LOCK, "rwc") == -1) err(1, "unveil"); if (unveil(_PATH_MASTERPASSWD, "r") == -1) err(1, "unveil"); |