[pitboss/grind] deferred session-0006 (20260517T044708Z-e058)

This commit is contained in:
pitboss 2026-05-17 02:01:36 -05:00
parent 0ec9a9b425
commit 356fcaf71e
5 changed files with 133 additions and 26 deletions

View file

@ -257,7 +257,10 @@ pub fn run_spec(spec: &HarnessSpec, opts: &SandboxOptions) -> Result<RunOutcome,
}
Lang::C => {
// Compile the harness binary with `cc -o nyx_harness main.c`.
match build_sandbox::prepare_c(spec, &harness.workdir) {
// Pass the sandbox profile so the build chooses `-static` when
// the run will chroot into `harness.workdir` and the dynamic
// loader would otherwise miss `/lib*`.
match build_sandbox::prepare_c(spec, &harness.workdir, opts.process_hardening) {
Ok(build_result) => {
let binary = build_result.venv_path.join("nyx_harness");
if binary.exists() {