Contents

XPC_CONNECTION_MACH_SERVICE_PRIVILEGED

A flag that indicates the job advertising the service name belongs to a launch daemon rather than a launch agent.

Declaration

var XPC_CONNECTION_MACH_SERVICE_PRIVILEGED: Int32 { get }

Discussion

Pass this to xpc_connection_create_mach_service(_:_:_:). This flag indicates that the job advertising the service name in its launchd.plist needs to be in the privileged Mach bootstrap. Do this by placing your launchd.plist in /Library/LaunchDaemons.

If you specify this alongside the XPC_CONNECTION_MACH_SERVICE_LISTENER flag, this flag is a no-op.

See Also

Creation