WebAssembly / WebAssembly/WASI

Should `readlink` fail if the target is absolute?

Open
#772 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Since WASI can't currently open symlinks with absolute paths, should readlink, fail when reading a symlink with an absolute path? That would avoid accidental leakage of host filesystem paths in some cases.

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 WASI specification and the documented readlink behavior, focusing on absolute symlink targets and the stated inability to open them. Determine whether the proposal should change the specification; done requires a clear decision on rejection behavior and its impact on host-path leakage.

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
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.