about summary refs log tree commit diff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-11-07T16·08+0100
committerEelco Dolstra <edolstra@gmail.com>2018-11-07T16·08+0100
commit812e39313c2bcf8909b83e1e8bc548a85dcd626c (patch)
tree74e4b7bffd4db2e6fd3063d8e05da5af7e643610 /src/libstore/globals.hh
parent5a3f140856185ae0c6ee9270ad5d5fbc0505e3f2 (diff)
Enable sandboxing by default
Closes #179.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 6b3e204536..53efc6a90f 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -195,7 +195,13 @@ public:
     Setting<bool> showTrace{this, false, "show-trace",
         "Whether to show a stack trace on evaluation errors."};
 
-    Setting<SandboxMode> sandboxMode{this, smDisabled, "sandbox",
+    Setting<SandboxMode> sandboxMode{this,
+        #if __linux__
+          smEnabled
+        #else
+          smDisabled
+        #endif
+        , "sandbox",
         "Whether to enable sandboxed builds. Can be \"true\", \"false\" or \"relaxed\".",
         {"build-use-chroot", "build-use-sandbox"}};