jameysharp opened PR #6163 from jameysharp:wasi-open
to bytecodealliance:main
:
This is an initial proof-of-concept alternative to #4967, which was an alternative to #4947. Unlike the other two attempts, this one should be race-free. I'm not particularly happy with it yet though, just opening this PR for discussion.
Open issues:
- I don't understand how the capabilities are supposed to work yet. Opening a directory got
file_caps
fromfs_rights_inheriting
, while opening a file got them fromfs_rights_base
. I haven't implemented that distinction in this PR yet.To-do:
- Pull in the other useful bits from the other two PRs, like test cases
- Remove
WasiDir::open_dir
and related bits, which is now used only in tests.
jameysharp requested pchickey for a review on PR #6163.
jameysharp requested sunfishcode for a review on PR #6163.
jameysharp updated PR #6163.
jameysharp updated PR #6163.
jameysharp updated PR #6163.
jameysharp updated PR #6163.
jameysharp has marked PR #6163 as ready for review.
jameysharp requested wasmtime-core-reviewers for a review on PR #6163.
pchickey submitted PR review:
Sorry this took a while for me to properly review. This is good work, thank you.
pchickey merged PR #6163.
Last updated: Dec 23 2024 at 12:05 UTC