Lightweight coding agent that runs in your terminal
Rust
Deny XPC service lookups in macOS Seatbelt profiles (#46583)
Jeremy Rose78245b47af2a
diff --git a/codex-rs/sandboxing/src/seatbelt.rs b/codex-rs/sandboxing/src/seatbelt.rsindex 8a96fe4a5e..3597649f8a 100644--- a/codex-rs/sandboxing/src/seatbelt.rs+++ b/codex-rs/sandboxing/src/seatbelt.rs@@ -1067,6 +1067,7 @@ pub(crate) fn create_seatbelt_command_args_with_profile(.map_err(|error| SeatbeltPreparationError::FileSystem(error.to_string()))?;policy_sections.push(daemon::protection_policy(&directory)?);}+ policy_sections.push("(deny mach-lookup (xpc-service-name-prefix \"\"))".to_string());policy_sections.push(deny_read_policy);// Renaming an allowed ancestor relocates its protected descendants past// their pathname carveouts. Keep these denies last so no broader allowance