[codex-rs] Improve linux sandbox timeouts (#662)

* Fixes flaking rust unit test
* Adds explicit sandbox exec timeout handling
This commit is contained in:
Parker Thompson
2025-04-25 12:56:20 -07:00
committed by GitHub
parent 55e25abf78
commit 7d9de34bc7
3 changed files with 40 additions and 11 deletions

View File

@@ -22,6 +22,14 @@ pub enum SandboxErr {
#[error("seccomp backend error")]
SeccompBackend(#[from] seccompiler::BackendError),
/// Command timed out
#[error("command timed out")]
Timeout,
/// Command was killed by a signal
#[error("command was killed by a signal")]
Signal(i32),
/// Error from linux landlock
#[error("Landlock was not able to fully enforce all sandbox rules")]
LandlockRestrict,