WebAssembly / WebAssembly/WASI
'chmod' equivalent in snapshot preview1?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
It appears that snapshot preview 1 does not have a way to change file permissions. This is important functionality for one of my use cases (a compiler that generates executables). This functionality does appear to be planned for the next version of wasi.
Is snapshot preview1 being updated? Is there interest in adding a chmod-like capability?
If so, I would propose a simple fs_chmod(fd: i32, mode: i32) function.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the snapshot preview 1 filesystem capabilities and the planned next WASI version, focusing on whether file-permission changes are in scope. Evaluate the proposed fs_chmod(fd: i32, mode: i32) API and existing compatibility constraints. Done means the project has decided whether to add chmod-like support and has a settled API and implementation scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100