zig/test/stage2
Jakub Konka b0ee911c23 wasi: always grant fd_readdir right
Since v0.23 release of Wasmtime, if we want to iterate a directory
Y then directory Y needed to have been granted `fd_readdir` right.
However, it is now also required for directory X to carry `fd_readdir`
right, and so on, up-chain all the way until we reach the preopen
(which possesses all rights by default).

This caused problems for us since our libstd implementation is more
fine-grained and allowed for parent dirs not to carry the right while
allow for iterating on its children. My proposal here is to always
grant `fd_readdir` right as part of
`std.fs.Dir.OpenDirOptions.access_sub_paths`. This seems to be the
approach taken by Rust also, plus we should be justified to take this
approach since WASI is experimental and snapshot1 will be discontinued
eventually and replaced with a new approach to access management
that will require a complete rewrite of our libstd anyhow.
2021-06-08 05:48:33 +02:00
..
aarch64.zig
arm.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-17 19:30:38 -07:00
cbe.zig
darwin.zig stage2 tests: fix missing 'pub' in one of the test cases 2021-05-18 12:53:23 -07:00
llvm.zig
riscv64.zig
test.zig AstGen: properly restore previous state after temporary changes 2021-05-28 17:29:56 -07:00
wasm.zig wasi: always grant fd_readdir right 2021-06-08 05:48:33 +02:00