WebAssembly / WebAssembly/WASI

wasi:filesystem - correct error when trying to escalate read permissions

Open
#911 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-filesystem
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

In cases where a guest has a handle to a write-only descriptor (e.g. opened by setting only the write descriptor-flag), and tries to escalate permissions by calling open-at with the read flag, it's not clear what error should be returned.

Does it make sense to add a error write-only case to error-code similar to read-only?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WASI filesystem specification sections for open-at, descriptor flags, and error-code. Trace the write-only descriptor case when open-at requests read access, then compare the existing read-only error behavior. Done means the expected error is decided and the relevant error-code specification is updated if a new write-only case is accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.