mirror of https://github.com/omar-polo/gmid.git
fix sandbox_server_process
it does the unveil(2)ing based on the first config, which breaks config-reloading.
This commit is contained in:
parent
cd1ede6dd3
commit
1962764c62
15
sandbox.c
15
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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue