pub async fn prepare_wanix_workload(
backend_type: &str,
mount: Arc<dyn Mount>,
subject: Subject,
decider: Arc<dyn AccessDecider>,
monitor: Option<Arc<ReferenceMonitor>>,
workload_dir: &Path,
guest_cfg: &WanixGuestConfig,
) -> Result<WanixInjection>Expand description
Fail-closed convenience: verify backend_type can inject a 9P socket, then
perform the injection (#506, deliverables 3 + 4 together).
The capability gate runs before any socket is bound or served, so an incapable backend (kata, wasm) is refused without side effects — never a silent no-op where the guest boots with no namespace.