commit 32ce4b0

default  ·  2024-01-11 10:07:07 +0000 UTC
parent 2693c08
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.
1 files changed,  +1, -0
M data.c
M data.c
+1, -0
1@@ -111,6 +111,7 @@ int srv_open(char *basedir, int auto_upgrade)
2     else {
3         srv_debug(1, xs_fmt("Calling unveil()"));
4         unveil(basedir,                "rwc");
5+        unveil("/tmp",                 "rwc");
6         unveil("/usr/sbin/sendmail",   "x");
7         unveil("/etc/resolv.conf",     "r");
8         unveil("/etc/hosts",           "r");