diff options
| author | 2025-01-05 13:36:39 +0100 | |
|---|---|---|
| committer | 2025-01-05 13:36:39 +0100 | |
| commit | e2fccec1d970a18ed8c6945003576a08edf04bb5 (patch) | |
| tree | f3ae8a1a12035671be7884df448d0006c8bb0c5a | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-e2fccec1d970a18ed8c6945003576a08edf04bb5.tar.gz snac2-e2fccec1d970a18ed8c6945003576a08edf04bb5.tar.xz snac2-e2fccec1d970a18ed8c6945003576a08edf04bb5.zip | |
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 @@ | |||
| 1 | #ifdef WITHOUT_SANDBOX | ||
| 2 | |||
| 3 | void sbox_enter(const char *basedir) | ||
| 4 | { | ||
| 5 | /* nothing to do */ | ||
| 6 | (void)basedir; | ||
| 7 | } | ||
| 8 | |||
| 9 | #else /* WITHOUT_SANDBOX */ | ||
| 10 | |||
| 1 | #include "xs.h" | 11 | #include "xs.h" |
| 2 | 12 | ||
| 3 | #include "snac.h" | 13 | #include "snac.h" |
| @@ -113,3 +123,5 @@ void sbox_enter(const char *basedir) | |||
| 113 | 123 | ||
| 114 | #endif | 124 | #endif |
| 115 | } | 125 | } |
| 126 | |||
| 127 | #endif /* WITHOUT_SANDBOX */ | ||