{"record":{"id":"07134b1c2f8a98e0","repo":"openai/codex","slug":"helperfirewallpolicyineffective","errorCode":"HelperFirewallPolicyIneffective","errorMessage":"local firewall policy modifications do not apply to every current profile: LocalPolicyModifyState result={result:?}","messagePattern":"local firewall policy modifications do not apply to every current profile: LocalPolicyModifyState result=(.+?)","errorType":"error_code","errorClass":"SetupFailure","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/bin/setup_main/win/firewall.rs","lineNumber":251,"sourceCode":"    };\n    validate_local_policy_modify_result(result, modify_state)\n}\n\nfn validate_local_policy_modify_result(\n    result: windows::core::HRESULT,\n    modify_state: NET_FW_MODIFY_STATE,\n) -> Result<()> {\n    if result.is_err() {\n        // The COM query itself failed, so Windows never gave us a policy answer.\n        return Err(anyhow::Error::new(SetupFailure::new(\n            SetupErrorCode::HelperFirewallPolicyAccessFailed,\n            format!(\"INetFwPolicy2::LocalPolicyModifyState failed: {result:?}\"),\n        )));\n    }\n\n    if result != S_OK {\n        // S_FALSE means the answer only holds for some active profiles, not all of them.\n        return Err(anyhow::Error::new(SetupFailure::new(\n            SetupErrorCode::HelperFirewallPolicyIneffective,\n            format!(\n                \"local firewall policy modifications do not apply to every current profile: LocalPolicyModifyState result={result:?}\"\n            ),\n        )));\n    }\n\n    if modify_state == NET_FW_MODIFY_STATE_OK {\n        return Ok(());\n    }\n\n    // Windows answered uniformly, and that answer says local rule edits are ineffective.\n    Err(anyhow::Error::new(SetupFailure::new(\n        SetupErrorCode::HelperFirewallPolicyIneffective,\n        format!(\n            \"local firewall policy modifications will not take effect: LocalPolicyModifyState={modify_state:?}\"\n        ),\n    )))","sourceCodeStart":233,"sourceCodeEnd":269,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/bin/setup_main/win/firewall.rs#L233-L269","documentation":"Error \"local firewall policy modifications do not apply to every current profile: LocalPolicyModifyState result={result:?}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/bin/setup_main/win/firewall.rs:251 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"}