aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-09 10:40:08 +0000
committerOmar Polo <op@omarpolo.com>2023-06-09 10:40:08 +0000
commit1962764c6292e845cec17393e1c46c1473ca1eeb (patch)
tree2efb10619fb1c2733958110b91c654c8becb933a /sandbox.c
parentcd1ede6dd3defbf2c9dedc0e1e5d733dcfde2d87 (diff)
fix sandbox_server_process
it does the unveil(2)ing based on the first config, which breaks config-reloading.
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c15
1 files changed, 0 insertions, 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");
}