Skip to content

[WASI] Should we overlook or restrict the access modes for stdin/stdout/stderr? #3686

@lum1n0us

Description

@lum1n0us

We've observed that in certain situations, the access modes for STDIN, STDOUT and STDERR do not behave as anticipated. For example, STDOUT may be read-only, while STDIN may be write-only.

It's important that we look into why these unexpected access modes are occurring. However, I'm wondering if we need to take steps to block these incorrect settings in core/iwasm/libraries/libc-wasi

Specifically, when determining file descriptor rights in the function fd_determine_type_rights(), should we assign fixed and unchangeable rights to STDIN, STDOUT and STDERR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions