diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-09 10:40:08 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-09 10:40:08 +0000 |
commit | 1962764c6292e845cec17393e1c46c1473ca1eeb (patch) | |
tree | 2efb10619fb1c2733958110b91c654c8becb933a /sandbox.c | |
parent | cd1ede6dd3defbf2c9dedc0e1e5d733dcfde2d87 (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.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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"); } |