{"record":{"id":"a4c0c321a3806f16","repo":"openai/codex","slug":"failed-to-verify-linux-sandbox-capabilities","errorCode":null,"errorMessage":"failed to verify Linux sandbox capabilities: {}","messagePattern":"failed to verify Linux sandbox capabilities: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":211,"sourceCode":"    // established the filesystem view.\n    if apply_seccomp_then_exec {\n        if let Err(err) = crate::fd_mount::verify_fd_mounts(&verify_fd_mounts) {\n            panic!(\"failed to verify descriptor-backed bubblewrap mount: {err}\");\n        }\n\n        let mut capability_header = [LINUX_CAPABILITY_VERSION_3, 0];\n        let mut capability_sets = [[0_u32; 3]; 2];\n        // SAFETY: capability ABI version 3 uses a [version, pid] header and\n        // two [effective, permitted, inheritable] capability-set entries.\n        let result = unsafe {\n            libc::syscall(\n                libc::SYS_capget,\n                capability_header.as_mut_ptr(),\n                capability_sets.as_mut_ptr(),\n            )\n        };\n        if result < 0 {\n            panic!(\n                \"failed to verify Linux sandbox capabilities: {}\",\n                std::io::Error::last_os_error()\n            );\n        }\n        if capability_sets\n            .into_iter()\n            .any(|[effective, permitted, _]| effective != 0 || permitted != 0)\n        {\n            panic!(\"Linux sandbox retained effective or permitted capabilities\");\n        }\n\n        if allow_network_for_proxy {\n            let spec = proxy_route_spec\n                .as_deref()\n                .unwrap_or_else(|| panic!(\"managed proxy mode requires --proxy-route-spec\"));\n            if let Err(err) = activate_proxy_routes_in_netns(spec) {\n                panic!(\"error activating Linux proxy routing bridge: {err}\");\n            }","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L193-L229","documentation":"Error \"failed to verify Linux sandbox capabilities: {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}