zig/test
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
..
behavior stage1: Allow array-like initialization for tuple types 2021-06-06 21:21:42 -04:00
src tests: Use {s} instead of {} when formatting strings 2021-01-02 17:12:57 -07:00
stage1/c_abi stage1: Widen non byte-sized atomic loads/stores 2021-05-14 15:16:24 -04:00
stage2 wasi: always grant fd_readdir right 2021-06-08 05:48:33 +02:00
standalone add a standalone for zig as a c/c++ compiler 2021-05-25 00:42:31 +02:00
assemble_and_link.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
behavior.zig move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
cli.zig std: @import("builtin").StackTrace -> std.builtin.StackTrace 2021-05-17 14:36:51 -07:00
compare_output.zig Reduce use of deprecated IO types 2021-01-07 23:48:58 -08:00
compile_errors.zig stage1: get test-compile-errors passing again 2021-05-28 14:19:08 -07:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig translate-c: properly handle enums used as boolean expressions 2021-06-07 15:51:42 +03:00
runtime_safety.zig update langref, compile-error tests, safety tests 2021-05-17 15:25:27 -07:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig add a standalone for zig as a c/c++ compiler 2021-05-25 00:42:31 +02:00
tests.zig Revert "tests: disable i386-linux-gnu -lc target due to CI failures" 2021-06-06 18:04:16 -07:00
translate_c.zig translate-c: properly handle enums used as boolean expressions 2021-06-07 15:51:42 +03:00