From e2fccec1d970a18ed8c6945003576a08edf04bb5 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 5 Jan 2025 13:36:39 +0100 Subject: New compilation variable WITHOUT_SANDBOX, to disable all sandboxing. --- sandbox.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sandbox.c b/sandbox.c index 0078551..4a49f07 100644 --- a/sandbox.c +++ b/sandbox.c @@ -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 */ -- cgit v1.2.3