fix(spawner): FreeBSD jail command=<binary> syntax (salvaged from Codex) #39
1 changed files with 5 additions and 6 deletions
|
|
@ -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",
|
||||
])
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue