Unix Domain Socket path for IPC between LaunchDaemon and LaunchAgent

Hello,

I am working on a cross-platform application where IPC between a LaunchDaemon and a LaunchAgent is implemented via Unix domain sockets. On macOS, the socket path length is restricted to 104 characters. What is the Apple-recommended directory for these sockets to ensure the path remains under the limit while allowing a non-sandboxed agent to communicate with a root daemon? Standard paths like $TMPDIR are often too long for this purpose.

Thank you in advance!

Unix Domain Socket path for IPC between LaunchDaemon and LaunchAgent
 
 
Q