summaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorGravatar shtrophic2024-11-19 20:47:15 +0100
committerGravatar shtrophic2024-11-19 20:47:15 +0100
commit972783fcb2d7855847f0ea0832da2abc71aa6b30 (patch)
treee8604ca135457fb58e574d4db8aca3ed3165b68a /sandbox.c
parentremove unused headers (diff)
downloadpenes-snac2-972783fcb2d7855847f0ea0832da2abc71aa6b30.tar.gz
penes-snac2-972783fcb2d7855847f0ea0832da2abc71aa6b30.tar.xz
penes-snac2-972783fcb2d7855847f0ea0832da2abc71aa6b30.zip
only rwc /dev/shm when WITHOUT_SHM is undefined
Diffstat (limited to '')
-rw-r--r--sandbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index 07a3094..c45587a 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -149,7 +149,9 @@ void sbox_enter(const char *basedir)
149 149
150 LANDLOCK_PATH(basedir, LL_RWCD); 150 LANDLOCK_PATH(basedir, LL_RWCD);
151 LANDLOCK_PATH("/tmp", LL_RWCD); 151 LANDLOCK_PATH("/tmp", LL_RWCD);
152#ifndef WITHOUT_SHM
152 LANDLOCK_PATH("/dev/shm", LL_RWCF); 153 LANDLOCK_PATH("/dev/shm", LL_RWCF);
154#endif
153 LANDLOCK_PATH("/etc/resolv.conf", LL_R ); 155 LANDLOCK_PATH("/etc/resolv.conf", LL_R );
154 LANDLOCK_PATH("/etc/hosts", LL_R ); 156 LANDLOCK_PATH("/etc/hosts", LL_R );
155 LANDLOCK_PATH("/etc/ssl/openssl.cnf", LL_R ); 157 LANDLOCK_PATH("/etc/ssl/openssl.cnf", LL_R );