about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-07-21T23·38+0000
committerAlyssa Ross <hi@alyssa.is>2020-07-23T18·55+0000
commit5183e92e4fd8e1b1ca3a118e901d6d16e17d8b9d (patch)
treecc6dd040665b55f0fee21fae16bed447b884bd8a
parent2d53aad13ab57ee55b14a454e6b98a9d9871f30d (diff)
feat(3p/nix): remove allow-unsafe-native-code-during-evaluation r/1428
This formerly controlled access to builtins.exec and
builtins.importNative, but both of those are gone now, so there's no
need for this option any more.

Change-Id: I6850cbd6be264fbfb1b209a60026dadbd0ba1232
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1341
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
-rw-r--r--third_party/nix/src/libexpr/eval.hh5
1 files changed, 0 insertions, 5 deletions
diff --git a/third_party/nix/src/libexpr/eval.hh b/third_party/nix/src/libexpr/eval.hh
index 3a0ad8e1263f..199253bc451b 100644
--- a/third_party/nix/src/libexpr/eval.hh
+++ b/third_party/nix/src/libexpr/eval.hh
@@ -331,11 +331,6 @@ struct InvalidPathError : EvalError {
 };
 
 struct EvalSettings : Config {
-  Setting<bool> enableNativeCode{this, false,
-                                 "allow-unsafe-native-code-during-evaluation",
-                                 "Whether builtin functions that allow "
-                                 "executing native code should be enabled."};
-
   Setting<bool> restrictEval{
       this, false, "restrict-eval",
       "Whether to restrict file system access to paths in $NIX_PATH, "