diff options
| author | 2024-01-11 11:07:07 +0100 | |
|---|---|---|
| committer | 2024-01-11 11:07:07 +0100 | |
| commit | 32ce4b065911ef73f584691506698a1b1d6de23a (patch) | |
| tree | 17ed393042b1d0de6219b9b1c8055da95035bfbb /data.c | |
| parent | If the actor from a message from the shared-inbox fails, propagate. (diff) | |
| download | snac2-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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"); |