bytecodealliance / preview2-prototyping

Polyfill adapter for preview1-using wasm modules to call preview2 functions.
Other
77 stars 20 forks source link

Add a WASI test for creating an absolute-path symlink #147

Closed pchickey closed 1 year ago

pchickey commented 1 year ago

Wasmtime disallows guests from using path_symlink to create absolute-path symlinks, as they could confuse other code into accessing resources on the host that the guest otherwise doesn't have access to.

This patch adds a test for this behavior.

Authored by @sunfishcode in https://github.com/bytecodealliance/wasmtime/pull/6071