mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
test: replace vendor-specific mach service examples
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -1729,7 +1729,7 @@ mod tests {
|
||||
serde_json::from_value::<MacOsSeatbeltProfileExtensions>(serde_json::json!({
|
||||
"preferences": "read_write",
|
||||
"automations": ["com.apple.Notes"],
|
||||
"mach_services": ["2BUA8C4S2C.com.1password.browser-helper"],
|
||||
"mach_services": ["com.vendor.helper"],
|
||||
"launch_services": true,
|
||||
"accessibility": true,
|
||||
"calendar": true,
|
||||
@@ -1745,7 +1745,7 @@ mod tests {
|
||||
macos_automation: MacOsAutomationPermission::BundleIds(vec![
|
||||
"com.apple.Notes".to_string(),
|
||||
]),
|
||||
macos_mach_services: vec!["2BUA8C4S2C.com.1password.browser-helper".to_string()],
|
||||
macos_mach_services: vec!["com.vendor.helper".to_string()],
|
||||
macos_launch_services: true,
|
||||
macos_accessibility: true,
|
||||
macos_calendar: true,
|
||||
@@ -1760,7 +1760,7 @@ mod tests {
|
||||
let permissions =
|
||||
serde_json::from_value::<MacOsSeatbeltProfileExtensions>(serde_json::json!({
|
||||
"mach_services": [
|
||||
"2BUA8C4S2C.com.1password.browser-helper",
|
||||
"com.vendor.helper",
|
||||
"com.apple.logd",
|
||||
]
|
||||
}))
|
||||
@@ -1772,7 +1772,7 @@ mod tests {
|
||||
macos_preferences: MacOsPreferencesPermission::ReadOnly,
|
||||
macos_automation: MacOsAutomationPermission::None,
|
||||
macos_mach_services: vec![
|
||||
"2BUA8C4S2C.com.1password.browser-helper".to_string(),
|
||||
"com.vendor.helper".to_string(),
|
||||
"com.apple.logd".to_string(),
|
||||
],
|
||||
macos_launch_services: false,
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ When you need extra sandboxed permissions for one command, use:
|
||||
- `file_system.write`: list of paths that need write access
|
||||
- `macos.preferences`: `read_only` or `read_write`
|
||||
- `macos.automations`: list of bundle IDs that need Apple Events access
|
||||
- `macos.mach_services`: list of exact global Mach service names that need `mach-lookup` (for 1Password desktop app integration, request `2BUA8C4S2C.com.1password.browser-helper`)
|
||||
- `macos.mach_services`: list of exact global Mach service names that need `mach-lookup` (for example, `com.vendor.helper`)
|
||||
- `macos.launch_services`: set to `true` to allow Launch Services access
|
||||
- `macos.accessibility`: set to `true` to allow accessibility APIs
|
||||
- `macos.calendar`: set to `true` to allow Calendar access
|
||||
|
||||
Reference in New Issue
Block a user