snac2

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

commit 5af94dade65c615cd565f399cd2a6e1e83e679f7
parent 4985b3e17e1dc7574f8e28c758645a019ba65e7a
Author: default <nobody@localhost>
Date:   Sun,  5 Jan 2025 13:20:08 +0100

Minor sandbox fix for Debian stable.

Diffstat:
Msandbox.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sandbox.c b/sandbox.c @@ -34,10 +34,12 @@ LL_BEGIN(sbox_enter_linux_, const char* basedir, const char *address, int smail) #endif LL_PATH("/etc/resolv.conf", rf ); LL_PATH("/etc/hosts", rf ); - LL_PATH("/etc/ssl/openssl.cnf", rf ); - LL_PATH("/etc/ssl/cert.pem", rf ); + LL_PATH("/etc/ssl", rf ); LL_PATH("/usr/share/zoneinfo", rf ); + if (mtime("/etc/pki") > 0) + LL_PATH("/etc/pki", rf ); + if (*address == '/') LL_PATH(address, s);