mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Add restricted evaluation mode
If ‘--option restrict-eval true’ is given, the evaluator will throw an exception if an attempt is made to access any file outside of the Nix search path. This is primarily intended for Hydra, where we don't want people doing ‘builtins.readFile ~/.ssh/id_dsa’ or stuff like that.
This commit is contained in:
parent
47bdc52c1b
commit
15d2d3c34e
6 changed files with 65 additions and 11 deletions
|
@ -16,6 +16,7 @@ MakeError(ThrownError, AssertionError)
|
|||
MakeError(Abort, EvalError)
|
||||
MakeError(TypeError, EvalError)
|
||||
MakeError(UndefinedVarError, Error)
|
||||
MakeError(RestrictedPathError, Error)
|
||||
|
||||
|
||||
/* Position objects. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue