WebAssembly / WebAssembly/WASI

'chmod' equivalent in snapshot preview1?

Open
#766 6 comments 1 reaction 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.