{"record":{"id":"7611652321a9b8d7","repo":"openai/codex","slug":"setsecurityinfo-failed-for-private-desktop-set-s","errorCode":null,"errorMessage":"SetSecurityInfo failed for private desktop: {set_security_code}","messagePattern":"SetSecurityInfo failed for private desktop: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/desktop.rs","lineNumber":180,"sourceCode":"\n    let set_security_code = SetSecurityInfo(\n        handle,\n        SE_WINDOW_OBJECT,\n        DACL_SECURITY_INFORMATION,\n        ptr::null_mut(),\n        ptr::null_mut(),\n        updated_dacl,\n        ptr::null_mut(),\n    );\n    if !updated_dacl.is_null() {\n        LocalFree(updated_dacl as HLOCAL);\n    }\n    if set_security_code != ERROR_SUCCESS {\n        logging::debug_log(\n            &format!(\"SetSecurityInfo failed for private desktop: {set_security_code}\"),\n            logs_base_dir,\n        );\n        return Err(anyhow::anyhow!(\n            \"SetSecurityInfo failed for private desktop: {set_security_code}\"\n        ));\n    }\n\n    Ok(())\n}\n\nimpl Drop for PrivateDesktop {\n    fn drop(&mut self) {\n        unsafe {\n            if self.handle != 0 {\n                let _ = CloseDesktop(self.handle);\n            }\n        }\n    }\n}\n","sourceCodeStart":162,"sourceCodeEnd":197,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/desktop.rs#L162-L197","documentation":"Error \"SetSecurityInfo failed for private desktop: {set_security_code}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/desktop.rs:180 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"}