diff options
| author | Achille Roussel <achille.roussel@gmail.com> | 2023-04-29 11:17:25 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-30 00:23:53 +0000 |
| commit | 4b66502ddaa264257343aae58395ef8cd4176cfd (patch) | |
| tree | c16ba04ea555cf45f006d507a1420d458f33cdf5 /src/runtime/stack.go | |
| parent | 4badad8d477ffd7a6b762c35bc69aed82faface7 (diff) | |
| download | go-4b66502ddaa264257343aae58395ef8cd4176cfd.tar.xz | |
syscall: fix opening of directories on wasip1
Go programs targeting GOOS=wasip1 were failing to open directories when
executed with runtimes like wasmtime or wasmedge due to requesting
rights for operations that are not supported on directories such as
fd_read, fd_write, etc...
This change addresses the issue by performing a second path_open when
observing EISDIR, and masking the requested rights to only ask for
permissions to perform operations supported by a directory.
Change-Id: Ibf65acf4a38bc848a649f41dbd026507d8b63c82
Reviewed-on: https://go-review.googlesource.com/c/go/+/490755
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions
