New compilation variable WITHOUT_SANDBOX, to disable all sandboxing.

This commit is contained in:
default
2025-01-05 13:36:39 +01:00
parent dd550c861e
commit e2fccec1d9
+12
View File
@@ -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 */