Skip to main content

Crate hermit_test_workdir

Crate hermit_test_workdir 

Source
Expand description

Host-side per-physical-run filesystem isolation inside the pinned root.

Callers must create their tracer runtime inside the callback and finish its cleanup before returning. A pre-existing executor could spawn the guest in its original namespace. This helper does not change the calling thread’s namespace, cwd, or filesystem sharing, and leaves /tmp transport visible.

Constants§

REQUEST_ENV
The pinned-root runner requests a fresh /test for each physical run.
WORKDIR
The pre-existing mountpoint supplied by the pinned-root container.

Functions§

requested_workdir
Refuse malformed requests instead of silently running without isolation.
with_isolated_workdir
Run on a new host thread with a fresh tmpfs mounted at /test.