mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
spawn_file_portal() checks WEFT_FILE_PORTAL_BIN; if set, creates a per-session Unix socket at /weft/portal-<id>.sock and spawns weft-file-portal with --allow args derived from the same host paths that resolve_preopens() produces for the session. WEFT_FILE_PORTAL_SOCKET is added to the runtime environment so weft-runtime (and the WASM app) can locate the socket. The portal process is killed and the socket cleaned up at the end of supervise(), after the runtime exits and the mount is torn down. When WEFT_FILE_PORTAL_BIN is unset the behaviour is unchanged. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||