{"record":{"id":"2ccb21870f4f32cd","repo":"openai/codex","slug":"landlock-was-not-able-to-fully-enforce-all-sandbox","errorCode":null,"errorMessage":"Landlock was not able to fully enforce all sandbox rules","messagePattern":"Landlock was not able to fully enforce all sandbox rules","errorType":"exception","errorClass":"SandboxErr","httpStatus":null,"severity":"error","filePath":"codex-rs/protocol/src/error.rs","lineNumber":66,"sourceCode":"    #[cfg(target_os = \"linux\")]\n    #[error(\"seccomp setup error\")]\n    SeccompInstall(#[from] seccompiler::Error),\n\n    /// Error from linux seccomp backend\n    #[cfg(target_os = \"linux\")]\n    #[error(\"seccomp backend error\")]\n    SeccompBackend(#[from] seccompiler::BackendError),\n\n    /// Command timed out\n    #[error(\"command timed out\")]\n    Timeout { output: Box<ExecToolCallOutput> },\n\n    /// Command was killed by a signal\n    #[error(\"command was killed by a signal\")]\n    Signal(i32),\n\n    /// Error from linux landlock\n    #[error(\"Landlock was not able to fully enforce all sandbox rules\")]\n    LandlockRestrict,\n}\n\npub struct CodexErr {\n    details: CodexErrorDetails,\n    retry_delay: Option<Duration>,\n}\n\n/// The semantic category and diagnostic payload for a [`CodexErr`].\n#[derive(Error, Debug, EnumDiscriminants)]\n#[strum_discriminants(name(CodexErrKind))]\n#[strum_discriminants(derive(serde::Serialize))]\n#[strum_discriminants(serde(rename_all = \"snake_case\"))]\n#[strum_discriminants(doc = \"The payload-free semantic category used for analytics.\")]\npub enum CodexErrorDetails {\n    #[error(\"turn aborted. Something went wrong? Hit `/feedback` to report the issue.\")]\n    TurnAborted,\n","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/protocol/src/error.rs#L48-L84","documentation":"Linux-only error raised during sandbox setup when the Landlock LSM could not apply the full set of filesystem access restrictions requested for the session. It fires on kernels or filesystems with partial/no Landlock support, meaning the command would run with weaker isolation than configured.","triggerScenarios":"Thrown at codex-rs/protocol/src/error.rs:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run on a kernel 5.13+ with Landlock enabled (check /sys/kernel/security/lsm)","Use a different sandbox mode (e.g. seatbelt on macOS or another Linux mechanism) where Landlock is unavailable","Avoid filesystems that do not support Landlock for the working directory"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}