aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-05 13:20:08 +0100
committerdefault <nobody@localhost>2025-01-05 13:20:08 +0100
commit5af94dade65c615cd565f399cd2a6e1e83e679f7 (patch)
treea70a1d05a49f0dcdce737dadcbe8389086fcbb51
parent4985b3e17e1dc7574f8e28c758645a019ba65e7a (diff)
Minor sandbox fix for Debian stable.
-rw-r--r--sandbox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sandbox.c b/sandbox.c
index f417e86..0078551 100644
--- 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);