openai/codex · error · SandboxErr

seccomp setup error

Error message

seccomp setup error

What it means

SandboxErr::SeccompInstall display: setting up the Linux seccomp filter (via seccompiler) failed before the sandboxed exec could start. The error source is the seccompiler::Error converted with #[from], indicating the sandbox could not install its syscall restrictions.

Solutions

  1. Check kernel seccomp support and permissions on the Linux host
  2. Inspect the wrapped seccompiler error for the specific filter failure
  3. Run in an environment that permits seccomp (some containers disable it)
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at codex-rs/protocol/src/error.rs:49 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/0d5edf3f5eae97f6. Report an issue: GitHub.

Appendix: source

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

/// Limit UI error messages to a reasonable size while keeping useful context.
const ERROR_MESSAGE_UI_MAX_BYTES: usize = 2 * 1024;

#[derive(Error, Debug)]
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,

View on GitHub (pinned to 339751715c)