about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-03 15:21:42 -0400
committerJune McEnroe <june@causal.agency>2021-09-03 15:21:42 -0400
commitb284dd634206d0b62940aec84ec4d214c61d4c5d (patch)
treeb244815ea4f478dab53433d9e3dd9fc012200922
parentOpenBSD: Drop no longer needed unveils and pledge promises (diff)
downloadpounce-b284dd634206d0b62940aec84ec4d214c61d4c5d.tar.gz
pounce-b284dd634206d0b62940aec84ec4d214c61d4c5d.zip
OpenBSD: Drop inet pledge when using unix socket
calico is passing us sockets it already accepted, so we don't need
inet anymore.
-rw-r--r--bounce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 49ac1f2..3976836 100644
--- a/bounce.c
+++ b/bounce.c
@@ -418,7 +418,7 @@ int main(int argc, char *argv[]) {
 
 #ifdef __OpenBSD__
 	if (bindPath[0]) {
-		error = pledge("stdio rpath inet cpath unix recvfd", NULL);
+		error = pledge("stdio rpath cpath unix recvfd", NULL);
 	} else {
 		error = pledge("stdio rpath inet", NULL);
 	}