openai/codex · error · SandboxErr

seccomp backend error

Error message

seccomp backend error

What it means

SandboxErr variant (Linux only) displayed as "seccomp backend error": an error surfaced from the Linux seccomp backend machinery (as opposed to SeccompInstall, which is filter setup). The sandbox's syscall enforcement layer itself failed during operation.

Solutions

  1. Inspect the wrapped backend error for root cause
  2. Verify the Linux environment supports the seccomp backend in use
  3. Retry on a host/container with standard seccomp support
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at codex-rs/protocol/src/error.rs:54 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/0d52c957a8261acd. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/protocol/src/error.rs:54

pub enum SandboxErr {
    /// Error from sandbox execution
    #[error(
        "sandbox denied exec error, exit code: {}, stdout: {}, stderr: {}",
        .output.exit_code, .output.stdout.text, .output.stderr.text
    )]
    Denied {
        output: Box<ExecToolCallOutput>,
        network_policy_decision: Option<NetworkPolicyDecisionPayload>,
    },

    /// Error from linux seccomp filter setup
    #[cfg(target_os = "linux")]
    #[error("seccomp setup error")]
    SeccompInstall(#[from] seccompiler::Error),

    /// Error from linux seccomp backend
    #[cfg(target_os = "linux")]
    #[error("seccomp backend error")]
    SeccompBackend(#[from] seccompiler::BackendError),

    /// Command timed out
    #[error("command timed out")]
    Timeout { output: Box<ExecToolCallOutput> },

    /// 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,
}

pub struct CodexErr {
    details: CodexErrorDetails,
    retry_delay: Option<Duration>,

View on GitHub (pinned to 339751715c)