Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

liberate wasi-common from Rights #6265

Merged
merged 2 commits into from
Apr 27, 2023
Merged

liberate wasi-common from Rights #6265

merged 2 commits into from
Apr 27, 2023

Conversation

pchickey
Copy link
Contributor

No more restricting Rights. It was a failed experiment, it has effectively no adoption, and its presence in the test suite is impeding the transition to Preview 2.

All use of Rights throughout wasi-common is now removed, except for the fs_rights_base argument to path_open using RIGHTS_FD_READ to indicate O_RDONLY and RIGHTS_FD_WRITE to indicate O_WRONLY.

All use of Rights is removed from the test suite, except for read/write. Portions of tests that check whether rights are available are deleted, only the read and write rights are ever passed, and the entire path_open_read_without_rights test is deleted, since its whole purpose was to measure that dropping rights worked.

Pat Hickey added 2 commits April 21, 2023 16:29
the sole thing rights are used to determine is whether a path_open
is opening for reading and writing.
@pchickey pchickey requested a review from a team as a code owner April 22, 2023 00:18
@pchickey pchickey requested review from jameysharp and sunfishcode and removed request for a team and jameysharp April 22, 2023 00:18
@github-actions github-actions bot added the wasi Issues pertaining to WASI label Apr 22, 2023
@github-actions
Copy link

Subscribe to Label Action

cc @kubkon

This issue or pull request has been labeled: "wasi"

Thus the following users have been cc'd because of the following labels:

  • kubkon: wasi

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

pchickey pushed a commit to bytecodealliance/preview2-prototyping that referenced this pull request Apr 24, 2023
…r rights

bytecodealliance/wasmtime#6265

note, im leaving out upstream changes to fd_readdir which are from bytecodealliance/wasmtime#6163, which requires porting the rest of that PR into this repo
sunfishcode pushed a commit to bytecodealliance/preview2-prototyping that referenced this pull request Apr 24, 2023
* Revert "wasi-tests: add configuration to ignore rights readback (#81)"

This reverts commit 087179a.

* wasi-tests: pull in all changes from upstream which remove support for rights

bytecodealliance/wasmtime#6265

note, im leaving out upstream changes to fd_readdir which are from bytecodealliance/wasmtime#6163, which requires porting the rest of that PR into this repo

* remove rights readback variable from test runner

* rustfmt

* delete path_open_read_without_rights test

which was deleted upstream
@pchickey pchickey added this pull request to the merge queue Apr 27, 2023
Merged via the queue into main with commit 98501e4 Apr 27, 2023
@pchickey pchickey deleted the pch/liberation branch April 27, 2023 16:36
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Apr 28, 2023
* tests: remove all use of rights for anything besides path_open read | write

* wasi-common and friends: delete all Caps from FileEntry and DirEntry

the sole thing rights are used to determine is whether a path_open
is opening for reading and writing.
pchickey added a commit to pchickey/wasmtime that referenced this pull request May 16, 2023
* Revert "wasi-tests: add configuration to ignore rights readback (bytecodealliance#81)"

This reverts commit d006b1b.

* wasi-tests: pull in all changes from upstream which remove support for rights

bytecodealliance#6265

note, im leaving out upstream changes to fd_readdir which are from bytecodealliance#6163, which requires porting the rest of that PR into this repo

* remove rights readback variable from test runner

* rustfmt

* delete path_open_read_without_rights test

which was deleted upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasi Issues pertaining to WASI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants