Stream: git-wasmtime

Topic: wasmtime / issue #8963 How to get control over filesystem...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2024 at 13:20):

stevenj opened issue #8963:

Our implementation requires filesystems to be fully controlled, and files come from a VFS not any mounted filesystem.
That means we need to control the low level aspects of filesystem access for WasiP2.

I don't see how that can be achieved, because the only option I see is giving Wasi access to a pre-opened directory, which is 100% off the table for our application. How to use the WaiCtxBuilder, and abstract the necessary filesystem interfaces to the runtime?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2024 at 14:41):

alexcrichton commented on issue #8963:

For a fully virtual filesystem you won't be using WasiCtxBuilder. You'll want to instead implement the Host traits directly generated in the wasmtime-wasi crate such as this. You'd then call add_to_linker or similarly.


Last updated: Nov 22 2024 at 17:03 UTC