소스 검색

New compilation variable WITHOUT_SANDBOX, to disable all sandboxing.

default 1 년 전
부모
커밋
e2fccec1d9
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      sandbox.c

+ 12 - 0
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 */