diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-11-07 17:08:28 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-11-07 17:08:28 +0100 |
commit | 812e39313c2bcf8909b83e1e8bc548a85dcd626c (patch) | |
tree | 74e4b7bffd4db2e6fd3063d8e05da5af7e643610 /src/libstore/globals.hh | |
parent | 5a3f140856185ae0c6ee9270ad5d5fbc0505e3f2 (diff) |
Enable sandboxing by default
Closes #179.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 6b3e20453..53efc6a90 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"}}; |