macOS sandboxing is notoriously under-documented, has sharp edges, and is nowhere near as expressive as Linux sandboxing.
Agreed about macOS's sandboxing being under-documented.