Browse Source

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.
default 1 year ago
parent
commit
32ce4b0659
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data.c

+ 1 - 0
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");