Skip to content

Handle set-size rights correctly when truncating a file.#115

Merged
sunfishcode merged 1 commit intobytecodealliance:masterfrom
sunfishcode:open-rights
Apr 30, 2019
Merged

Handle set-size rights correctly when truncating a file.#115
sunfishcode merged 1 commit intobytecodealliance:masterfrom
sunfishcode:open-rights

Conversation

@sunfishcode
Copy link
Member

If a path_open call is requesting __WASI_RIGHT_FD_FILESTAT_SET_SIZE,
interpret that as a request for write privleges. If it is requesting
O_TRUNC, require __WASI_RIGHT_PATH_FILESTAT_SET_SIZE, since this is
a path operation rather than a FD operation.

If a path_open call is requesting __WASI_RIGHT_FD_FILESTAT_SET_SIZE,
interpret that as a request for write privleges. If it is requesting
O_TRUNC, require __WASI_RIGHT_PATH_FILESTAT_SET_SIZE, since this is
a path operation rather than a FD operation.
@sunfishcode sunfishcode merged commit 049c926 into bytecodealliance:master Apr 30, 2019
@sunfishcode sunfishcode deleted the open-rights branch April 30, 2019 06:34
grishasobol pushed a commit to grishasobol/wasmtime that referenced this pull request Nov 29, 2021
* Allocate mem on demand

* More control in with_direct_access_mut
howjmay pushed a commit to howjmay/wasmtime that referenced this pull request Jan 24, 2022
Use GetFunc where possible.
pchickey added a commit to pchickey/wasmtime that referenced this pull request May 16, 2023
rather than the freestanding function which existed before we added that
to the code generator in wasmtime#5589
mooori pushed a commit to mooori/wasmtime that referenced this pull request Dec 20, 2023
dhil added a commit to frank-emrich/wasmtime that referenced this pull request Feb 23, 2024
avanhatt pushed a commit to wellesley-prog-sys/wasmtime that referenced this pull request Oct 9, 2024
Make `isaspec` output line length configurable, and increase it to 120.

Updates avanhatt#62
alexcrichton pushed a commit to alexcrichton/wasmtime that referenced this pull request Oct 8, 2025
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant