Skip to content

wasi: should fd_readdir capability be cascaded down now? #2891

@kubkon

Description

@kubkon

I've recently tried bumping Zig's wasmtime dependency from v0.20 to v0.26, and noticed that since v0.23, the behaviour of fd_readdir capability has changed:

v0.22.1:

It was OK to create a subdir, and then open it with for iteration with fd_readdir cap even if the dir level above was opened without this cap.

Trace

v0.26:

It seems that the entire dir chain (excluding preopens of course) now requires fd_readdir right in their base rights to be able to iterate on some nested subdir.

Trace


Is that intended behaviour or a bug, or most likely, have I misunderstood something?

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