net/pounce: unbreak calico: needs to unveil the directory with the

sockets as RW.

based on a patch from june [at] casual [dot] agency (upstream), thanks!
This commit is contained in:
op 2022-10-20 19:29:29 +00:00
parent a29d2397c5
commit 3d1824feb9
2 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,7 @@
COMMENT = multi-client, TLS-only IRC bouncer
DISTNAME = pounce-3.0
REVISION = 0
CATEGORIES = net

View File

@ -0,0 +1,15 @@
unveil RW the path to the directory holding the sockets to the pounce
instances.
Index: dispatch.c
--- dispatch.c.orig
+++ dispatch.c
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
}
#ifdef __OpenBSD__
- error = unveil(path, "r");
+ error = unveil(path, "rw");
if (error) err(EX_OSERR, "unveil");
error = pledge("stdio rpath inet unix dns sendfd", NULL);