componentized/directory

componentized:filesystem-chroot

component dev

Virtualizes the `wasi:filesystem` interfaces limiting all access to a specific directory defined by the 'path' key in a `wasi:config/store`, mimicking the GNU chroot command.

Imports

Exports

WIT

package root:component;

world root {
  import wasi:config/store@0.2.0-rc.1;
  import wasi:clocks/system-clock@0.3.0;
  import wasi:filesystem/types@0.3.0;
  import wasi:filesystem/preopens@0.3.0;

  export wasi:filesystem/types@0.3.0;
  export wasi:filesystem/preopens@0.3.0;
}