mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
The engine is libkrun.1.dylib, dlopen'd from the Homebrew kegs when the loader's own search fails (bare sonames never reach the brew prefix); the probe becomes a per-platform hypervisor probe — KVM on Linux, sysctl + a real hv_vm_create on macOS, so an entitlement denial (HV_DENIED) names the re-sign fix instead of surfacing as an opaque krun_start_enter EINVAL. Tool lookup (mke2fs, debugfs) gains the same keg fallback, and dyld_fallback_dirs() collects the kegs the bare-soname dlopens (libkrunfw, libarchive) need in DYLD_FALLBACK_LIBRARY_PATH. The machine child's parent-death contract moves to a kqueue NOTE_EXIT watcher: macOS has no PR_SET_PDEATHSIG, and SIGKILL-on-parent-exit is what keeps a killed caller from stranding a booted machine.