Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component model for filesystem access #149

Open
Loara opened this issue Jun 4, 2024 · 0 comments
Open

Component model for filesystem access #149

Loara opened this issue Jun 4, 2024 · 0 comments

Comments

@Loara
Copy link

Loara commented Jun 4, 2024

Component model can be used to introduce a more granular control on filesystem access for wasm applications, and by converse improve the interoperability between wasi packages.

A filesystem interface is just a plain text file containing a list of relative paths and permissions. A simple MyInterface filesystem interface file can contain the following lines:

path1/file1 r
path1/path2/file2 rw
file3 re

Such interface can be later imported by a wasm interpreter with a --import-file-interface command line option containing both the filesystem interface name and an absolute path containing all the files specified in the interface

--import-file-interface My interface /some/abs/path/dir/

It could be a useful feature to enable a finer way to control filesystem access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant