diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2022-04-21 16:41:37 -0400 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2022-04-21 16:41:37 -0400 |
commit | f25112d3832b93a2bc8abe7936e6355dae9a25d5 (patch) | |
tree | 186d85f2f087bab22612dd2c6014146014140b49 /doc/manual | |
parent | 9345b4e9ca1b14071b471851508b37edfc2d1248 (diff) |
fix: builtins.toFile adds path to allowedPaths
The produced path is then allowed be imported or utilized elsewhere:
```
assert (43 == import (builtins.toFile "source" "43")); "good"
```
This will still fail on write-only stores.
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/src/release-notes/rl-next.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md index 3e2998c6c..f16ae901c 100644 --- a/doc/manual/src/release-notes/rl-next.md +++ b/doc/manual/src/release-notes/rl-next.md @@ -2,3 +2,7 @@ * `nix repl` has a new build-'n-link (`:bl`) command that builds a derivation while creating GC root symlinks. + +* The path produced by `builtins.toFile` is now allowed to be imported or read + even with restricted evaluation. Note that this will not work with a + read-only store. |