From 1962764c6292e845cec17393e1c46c1473ca1eeb Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 9 Jun 2023 10:40:08 +0000 Subject: [PATCH] fix sandbox_server_process it does the unveil(2)ing based on the first config, which breaks config-reloading. --- sandbox.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sandbox.c b/sandbox.c index 0d4773f..6d68b0f 100644 --- a/sandbox.c +++ b/sandbox.c @@ -31,21 +31,6 @@ sandbox_main_process(void) void sandbox_server_process(void) { - struct vhost *h; - struct location *l; - - TAILQ_FOREACH(h, &hosts, vhosts) { - TAILQ_FOREACH(l, &h->locations, locations) { - if (*l->dir == '\0') - continue; - - if (unveil(l->dir, "rw") == -1) - fatal("unveil %s for domain %s", - l->dir, - h->domain); - } - } - if (pledge("stdio recvfd rpath unix inet dns", NULL) == -1) fatal("pledge"); }