diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,7 +65,9 @@ main(void) kcgi_strerror(parse_err)); /* A bit of security cannot hurt */ - if (-1 == unveil(DATA_DIR, "r") || -1 == unveil(NULL, NULL)) + if (-1 == unveil(DATA_DIR, "r") + || -1 == unveil(TEMPLATE_DIR, "r") + || -1 == unveil(NULL, NULL)) http_exit(&r, KHTTP_500, "Unveil failed: %s", strerror(errno)); if (-1 == pledge("stdio rpath wpath cpath", NULL)) http_exit(&r, KHTTP_500, "Pledge failed: %s", strerror(errno)); |