diff options
| author | shtrophic <christoph@liebender.dev> | 2024-11-19 20:47:15 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2024-11-19 20:47:15 +0100 |
| commit | 972783fcb2d7855847f0ea0832da2abc71aa6b30 (patch) | |
| tree | e8604ca135457fb58e574d4db8aca3ed3165b68a /sandbox.c | |
| parent | 017140f5235d5c379402715f2cbbe1fdd037ba16 (diff) | |
only rwc /dev/shm when WITHOUT_SHM is undefined
Diffstat (limited to 'sandbox.c')
| -rw-r--r-- | sandbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -149,7 +149,9 @@ void sbox_enter(const char *basedir) LANDLOCK_PATH(basedir, LL_RWCD); LANDLOCK_PATH("/tmp", LL_RWCD); +#ifndef WITHOUT_SHM LANDLOCK_PATH("/dev/shm", LL_RWCF); +#endif LANDLOCK_PATH("/etc/resolv.conf", LL_R ); LANDLOCK_PATH("/etc/hosts", LL_R ); LANDLOCK_PATH("/etc/ssl/openssl.cnf", LL_R ); |