summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2024-01-11 11:07:07 +0100
committerGravatar default2024-01-11 11:07:07 +0100
commit32ce4b065911ef73f584691506698a1b1d6de23a (patch)
tree17ed393042b1d0de6219b9b1c8055da95035bfbb /data.c
parentIf the actor from a message from the shared-inbox fails, propagate. (diff)
downloadsnac2-32ce4b065911ef73f584691506698a1b1d6de23a.tar.gz
snac2-32ce4b065911ef73f584691506698a1b1d6de23a.tar.xz
snac2-32ce4b065911ef73f584691506698a1b1d6de23a.zip
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)
111 else { 111 else {
112 srv_debug(1, xs_fmt("Calling unveil()")); 112 srv_debug(1, xs_fmt("Calling unveil()"));
113 unveil(basedir, "rwc"); 113 unveil(basedir, "rwc");
114 unveil("/tmp", "rwc");
114 unveil("/usr/sbin/sendmail", "x"); 115 unveil("/usr/sbin/sendmail", "x");
115 unveil("/etc/resolv.conf", "r"); 116 unveil("/etc/resolv.conf", "r");
116 unveil("/etc/hosts", "r"); 117 unveil("/etc/hosts", "r");