aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-25 14:58:54 +0000
committerOmar Polo <op@omarpolo.com>2021-01-25 14:58:54 +0000
commit2d3cc76f6d5c2eb4a23f0dbebe5ef779f07b947b (patch)
treee7334474ed13422f80d184b86640e6d5905ef740
parent6c117838be051c7cdd769ca74708323f6c7f25cd (diff)
we don't need unveil "x" in listener
not a big deal, since the pledge prohibits us to exec, but nevertheless.
-rw-r--r--sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox.c b/sandbox.c
index 030112b..cf6ee8b 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -245,7 +245,7 @@ sandbox()
struct vhost *h;
for (h = hosts; h->domain != NULL; ++h) {
- if (unveil(h->dir, "rx") == -1)
+ if (unveil(h->dir, "r") == -1)
err(1, "unveil %s for domain %s", h->dir, h->domain);
}