Skip to content

feat: add macOS Mach IPC policy controls#124

Merged
jy-tan merged 2 commits intomainfrom
mach-config
Apr 14, 2026
Merged

feat: add macOS Mach IPC policy controls#124
jy-tan merged 2 commits intomainfrom
mach-config

Conversation

@jy-tan
Copy link
Copy Markdown
Contributor

@jy-tan jy-tan commented Apr 14, 2026

Summary

Add macOS-specific Mach IPC controls so Fence users can allow the mach-lookup and mach-register services required by sandboxed tools while keeping this backend-specific policy out of the portable top-level config model.

Resolves #116.

Changes

  • Add a macos.mach config namespace with lookup and register allowlists
  • Support exact service names, trailing wildcards like org.chromium.*, and ["*"] for broad compatibility when needed
  • Validate, merge, serialize, and publish the new config shape in the generated JSON schema
  • Emit matching mach-lookup and mach-register rules in the macOS Seatbelt profile
  • Surface blocked Mach denials in monitor mode so missing services are discoverable while tuning policy
  • Document the new config and security tradeoffs for backend-specific Mach/XPC exceptions

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 13 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/library.md">

<violation number="1" location="docs/library.md:205">
P2: Documenting MacOSConfig/MachConfig as part of the public fence API is misleading because pkg/fence does not re-export those types.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

@jy-tan jy-tan merged commit cf3ce8a into main Apr 14, 2026
6 checks passed
@jy-tan jy-tan deleted the mach-config branch April 14, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS sandbox Mach IPC policy is not configurable

1 participant