summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2015-10-12 09:28:55 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2015-10-12 09:28:55 +0000
commitbebe28348affb2ed51c7781b70ce6a7a26ceb09d (patch)
tree8b4291ee9fc2009f288f71f96ede417b52c42e62
parent9f188205b3761ba90ca2a027f71220c5349c4dfb (diff)
Revert the pledge() call on pax/ar_io.c for now.
A pledged program is not allowed to change user/group for others. "I think that makes the most sense" @sthen
-rw-r--r--bin/pax/ar_io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c
index 1d9717c20f0..0b22757ba73 100644
--- a/bin/pax/ar_io.c
+++ b/bin/pax/ar_io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar_io.c,v 1.51 2015/10/12 05:05:24 deraadt Exp $ */
+/* $OpenBSD: ar_io.c,v 1.52 2015/10/12 09:28:54 semarie Exp $ */
/* $NetBSD: ar_io.c,v 1.5 1996/03/26 23:54:13 mrg Exp $ */
/*-
@@ -1261,9 +1261,11 @@ ar_start_gzip(int fd, const char *path, int wr)
close(fds[0]);
close(fds[1]);
+#if 0
if (pledge("stdio rpath wpath cpath fattr getpw ioctl proc",
NULL) == -1)
err(1, "pledge");
+#endif
} else {
if (wr) {
dup2(fds[0], STDIN_FILENO);