Jelajahi Sumber

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 2 tahun lalu
induk
melakukan
32ce4b0659
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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");