snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 32ce4b065911ef73f584691506698a1b1d6de23a
parent 2693c081b4614dbf3b89f078df7a3786bc3a908a
Author: default <nobody@localhost>
Date:   Thu, 11 Jan 2024 11:07:07 +0100

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:
Mdata.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/data.c b/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");