wasmtime-dotnet icon indicating copy to clipboard operation
wasmtime-dotnet copied to clipboard

Filesystem interception

Open chutchinson opened this issue 2 years ago • 1 comments

Is it possible with these bindings to intercept filesystem operations, or would one have to redefine WASI functions such as fd_read, fd_write, etc? Is a virtual filesystem implementation or filesystem interception supported by wasmtime (but perhaps not this binding? I may be interested in that contribution).

chutchinson avatar Mar 31 '23 05:03 chutchinson

I don't believe any of the Wasmtime language bindings make it easy to implement an alternative WASI implementation for intercepting certain operations.

Wasmtime (and these bindings) allow for alternative, host-defined WASI-named functions to be defined in a Linker (for example), but you would need to supply your own implementation.

peterhuene avatar Apr 02 '23 00:04 peterhuene