0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
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.
History 2021-06-08 05:48:33 +02:00
..
atomic os/bits: remove duplicate sockaddr_storage for dragonfly 2021-06-01 18:35:13 +09:00
build Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
c housekeeping: builtin.arch → builtin.cpu.arch 2021-05-24 13:38:47 -04:00
compress Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
crypto std.crypto: timing-safe functions to add&subtract serialized integers (#8977) 2021-06-06 16:37:58 +02:00
event Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
fmt Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
fs Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
hash Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
heap Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
io Makes std.io.StreamSource usable with freestanding 2021-06-04 13:04:36 -04:00
json std/json: Fix premature closing brace being considered valid JSON 2021-05-13 11:11:28 +02:00
math Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
mem std: Clear old memory on free 2021-02-25 22:20:30 +02:00
meta Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-17 19:30:38 -07:00
net std: update usage of std.testing 2021-05-08 15:15:30 +03:00
os Add Linux XDP bits (#9019) 2021-06-07 21:33:29 -04:00
rand std: update usage of std.testing 2021-05-08 15:15:30 +03:00
special compiler-rt: Fix __floatunsitf signature 2021-06-05 13:32:41 -04:00
target Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
testing Year++ 2020-12-31 15:45:24 -08:00
Thread std.sync.atomic: extended atomic helper functions (#8866) 2021-05-31 11:11:30 -05:00
time Year++ 2020-12-31 15:45:24 -08:00
unicode Reduce use of deprecated IO types 2021-01-07 23:48:58 -08:00
valgrind Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
x os: make msghdr, msghdr_const, and sockaddr_storage backwards-compatible 2021-06-01 18:24:43 +09:00
zig fmt: fix #8974 2021-06-04 10:49:05 +03:00
array_hash_map.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
array_list.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
ascii.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
atomic.zig os/bits: remove duplicate sockaddr_storage for dragonfly 2021-06-01 18:35:13 +09:00
base64.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
bit_set.zig Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
buf_map.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
buf_set.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
build.zig build: Avoid using undefined variables 2021-06-06 19:57:07 -04:00
builtin.zig stage2: type declarations ZIR encode AnonNameStrategy 2021-05-10 21:34:43 -07:00
c.zig os: have sendmsg, recvmsg flags be c_int 2021-06-01 18:22:58 +09:00
child_process.zig std: Better handing of POLLHUP in ChildProcess (#8988) 2021-06-05 14:26:59 -04:00
coff.zig std: change @import("builtin") to std.builtin 2021-04-15 19:06:39 -07:00
compress.zig std: Update test "" to test where it makes sense 2021-01-22 15:46:58 +01:00
comptime_string_map.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
crypto.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
cstr.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
debug.zig enable symbol lookup for haiku 2021-05-24 10:39:01 -07:00
dwarf.zig std: change @import("builtin") to std.builtin 2021-04-15 19:06:39 -07:00
dwarf_bits.zig Year++ 2020-12-31 15:45:24 -08:00
dynamic_library.zig dragonfly: pass zig build test 2021-05-24 10:24:41 -04:00
elf.zig Run zig fmt on src/ and lib/std/ 2021-05-20 17:14:18 +02:00
enums.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
event.zig Year++ 2020-12-31 15:45:24 -08:00
fifo.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
fmt.zig stage2: disallow 1.e9 and 0x1.p9 as float literals 2021-05-31 19:51:11 +00:00
fs.zig wasi: always grant fd_readdir right 2021-06-08 05:48:33 +02:00
hash.zig Year++ 2020-12-31 15:45:24 -08:00
hash_map.zig Fix return type of HashMap.getAdapted 2021-06-03 17:58:06 -05:00
heap.zig std: Add helpers to safely align pointers 2021-06-06 18:04:16 -07:00
io.zig std: change @import("builtin") to std.builtin 2021-04-15 19:06:39 -07:00
json.zig Merge pull request #8750 from lithdew/master 2021-06-04 01:21:28 -04:00
leb128.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
linked_list.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
log.zig zig fmt the std lib 2021-02-24 21:29:23 -07:00
macho.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-18 12:37:03 -07:00
math.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
mem.zig fix doc comments copy paste typo 2021-06-06 18:05:06 -07:00
meta.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-12 16:41:20 -07:00
multi_array_list.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
net.zig std: update regarding std.builtin reorganization 2021-05-17 16:08:09 -07:00
once.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
os.zig Merge pull request #8750 from lithdew/master 2021-06-04 01:21:28 -04:00
packed_int_array.zig std.sync.atomic: extended atomic helper functions (#8866) 2021-05-31 11:11:30 -05:00
pdb.zig std: fix compile errors caught by stage2 AstGen 2021-04-22 18:07:46 -07:00
priority_dequeue.zig fix shrinkAndFree and remove shrinkRetainingCapacity in PriorityQueue and PriorityDequeue 2021-05-12 18:33:25 -04:00
priority_queue.zig fix shrinkAndFree and remove shrinkRetainingCapacity in PriorityQueue and PriorityDequeue 2021-05-12 18:33:25 -04:00
process.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
Progress.zig std: Use more common escape sequences in Progress 2021-03-12 19:31:59 -05:00
rand.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
SemanticVersion.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
sort.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
start.zig start.zig: intentional silent failure when cannot increase stack size 2021-05-28 13:17:04 -07:00
start_windows_tls.zig move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
std.zig x, x/os/Socket: initial work on new Socket abstraction 2021-04-25 21:15:02 +09:00
target.zig openbsd: adjust dynamic linker path (#9010) 2021-06-06 16:35:15 +02:00
testing.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-15 21:44:38 -07:00
Thread.zig std.sync.atomic: extended atomic helper functions (#8866) 2021-05-31 11:11:30 -05:00
time.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
unicode.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
valgrind.zig std: update regarding std.builtin reorganization 2021-05-17 16:08:09 -07:00
wasm.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
x.zig x/io, x/os: async i/o reactor, cross-platform socket syscalls and bits 2021-06-01 18:22:57 +09:00
zig.zig wasm: link dynamically by default when targeting wasm 2021-05-20 16:54:00 +02:00