diff options
| author | default <nobody@localhost> | 2025-01-05 13:36:39 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-05 13:36:39 +0100 |
| commit | e2fccec1d970a18ed8c6945003576a08edf04bb5 (patch) | |
| tree | f3ae8a1a12035671be7884df448d0006c8bb0c5a | |
| parent | dd550c861e6857bad1d739d72af7aa46fcf5b724 (diff) | |
New compilation variable WITHOUT_SANDBOX, to disable all sandboxing.
| -rw-r--r-- | sandbox.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,13 @@ +#ifdef WITHOUT_SANDBOX + +void sbox_enter(const char *basedir) +{ + /* nothing to do */ + (void)basedir; +} + +#else /* WITHOUT_SANDBOX */ + #include "xs.h" #include "snac.h" @@ -113,3 +123,5 @@ void sbox_enter(const char *basedir) #endif } + +#endif /* WITHOUT_SANDBOX */ |