summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-11 11:07:07 +0100
committerdefault <nobody@localhost>2024-01-11 11:07:07 +0100
commit32ce4b065911ef73f584691506698a1b1d6de23a (patch)
tree17ed393042b1d0de6219b9b1c8055da95035bfbb /data.c
parent2693c081b4614dbf3b89f078df7a3786bc3a908a (diff)
Added an unveil() call for "/tmp".
It seems that it's needed for shm_open() to succeed, whatever the first argument points to. No idea why.
Diffstat (limited to 'data.c')
-rw-r--r--data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/data.c b/data.c
index f2b4e0f..5e2f43d 100644
--- a/data.c
+++ b/data.c
@@ -111,6 +111,7 @@ int srv_open(char *basedir, int auto_upgrade)
else {
srv_debug(1, xs_fmt("Calling unveil()"));
unveil(basedir, "rwc");
+ unveil("/tmp", "rwc");
unveil("/usr/sbin/sendmail", "x");
unveil("/etc/resolv.conf", "r");
unveil("/etc/hosts", "r");