diff --git a/crates/colibri-daemon/src/spawner.rs b/crates/colibri-daemon/src/spawner.rs index 77fd3d9..4b59ccd 100644 --- a/crates/colibri-daemon/src/spawner.rs +++ b/crates/colibri-daemon/src/spawner.rs @@ -213,8 +213,9 @@ pub fn jail_wrap( format!("path={path}"), "mount.devfs".to_string(), ip4_param, - "command".to_string(), - binary.to_string(), + // jail(8) expects command as a name=value parameter, followed by + // any argv for that command. + format!("command={binary}"), ]; ("jail".to_string(), a) } else { @@ -694,8 +695,7 @@ mod jail_tests { "path=/var/jails/pi", "mount.devfs", "ip4=inherit", - "command", - "pi", + "command=pi", "go", ]) ); @@ -717,8 +717,7 @@ mod jail_tests { "path=/var/jails/pi", "mount.devfs", "ip4.addr=10.0.0.5", - "command", - "pi", + "command=pi", ]) ); }