mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
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.
This commit is contained in:
parent
2693c081b4
commit
32ce4b0659
1 changed files with 1 additions and 0 deletions
1
data.c
1
data.c
|
@ -111,6 +111,7 @@ int srv_open(char *basedir, int auto_upgrade)
|
||||||
else {
|
else {
|
||||||
srv_debug(1, xs_fmt("Calling unveil()"));
|
srv_debug(1, xs_fmt("Calling unveil()"));
|
||||||
unveil(basedir, "rwc");
|
unveil(basedir, "rwc");
|
||||||
|
unveil("/tmp", "rwc");
|
||||||
unveil("/usr/sbin/sendmail", "x");
|
unveil("/usr/sbin/sendmail", "x");
|
||||||
unveil("/etc/resolv.conf", "r");
|
unveil("/etc/resolv.conf", "r");
|
||||||
unveil("/etc/hosts", "r");
|
unveil("/etc/hosts", "r");
|
||||||
|
|
Loading…
Reference in a new issue