Skip to content

Should not be able to create a symlink to absolute path #271

@yagehu

Description

@yagehu

WASI specifies that such an operation should fail. Node with uvwasi currently successfully creates the symlink. Other runtimes (Wasmtime, Wasmer, WasmEdge, Wazero, WAMR) successfully block this call.

fn main() {
    unsafe {
        let base_fd = 3;

        wasi::path_symlink("/a", base_fd, "a").unwrap();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions