That what stuff like XPC and entitlements are for, which naturally programs from UNIX culture background don't care to use.