summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2019-02-12 19:20:15 +0000
committerbenno <benno@openbsd.org>2019-02-12 19:20:15 +0000
commit5cc5730ea467e2335571eaee1dd494a5051f4b83 (patch)
tree09cfb95fd4cdc3d6c390d8d807d9155b8535b73d
parentsync (diff)
downloadwireguard-openbsd-5cc5730ea467e2335571eaee1dd494a5051f4b83.tar.xz
wireguard-openbsd-5cc5730ea467e2335571eaee1dd494a5051f4b83.zip
sync
commit a2f872b75044aa7bf2297704500b134e3f1b68f7 Author: kristaps <> Date: Tue Feb 12 08:11:09 2019 +0000 Some forgotten pledges for getpw.
-rw-r--r--usr.bin/rsync/socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
index ff8496c3a70..dbd1cd65167 100644
--- a/usr.bin/rsync/socket.c
+++ b/usr.bin/rsync/socket.c
@@ -1,4 +1,4 @@
-/* $Id: socket.c,v 1.5 2019/02/11 21:41:22 deraadt Exp $ */
+/* $Id: socket.c,v 1.6 2019/02/12 19:20:15 benno Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -267,7 +267,7 @@ rsync_socket(const struct opts *opts, const struct fargs *f)
/* Drop the DNS pledge. */
- if (pledge("stdio rpath wpath cpath fattr inet unveil", NULL) == -1) {
+ if (pledge("stdio rpath wpath cpath fattr getpw inet unveil", NULL) == -1) {
ERR(&sess, "pledge");
goto out;
}
@@ -288,7 +288,7 @@ rsync_socket(const struct opts *opts, const struct fargs *f)
}
/* Drop the inet pledge. */
- if (pledge("stdio rpath wpath cpath fattr unveil", NULL) == -1) {
+ if (pledge("stdio rpath wpath cpath fattr getpw unveil", NULL) == -1) {
ERR(&sess, "pledge");
goto out;
}