fix sandbox_server_process

it does the unveil(2)ing based on the first config, which breaks
config-reloading.
This commit is contained in:
Omar Polo 2023-06-09 10:40:08 +00:00
parent cd1ede6dd3
commit 1962764c62
1 changed files with 0 additions and 15 deletions

View File

@ -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");
}