HNHacker News
TopNewBestAskShowJobs

brainsalad

-28 karma · joined November 23, 2014

submissionscomments
brainsalad··on DBus, FreeDesktop, and lots of madness
"Immediately after connecting to the server, the client must send a single nul byte. This byte may be accompanied by credentials information on some operating systems that use sendmsg() with SCM_CREDS or SCM_CREDENTIALS to pass credentials over UNIX domain sockets. However, the nul byte must be sent even on other kinds of socket, and even on operating systems that do not require a byte to be sent in order to transmit credentials. The text protocol described in this document begins after the single nul byte. If the first byte received from the client is not a nul byte, the server may disconnect that client."

Oh, technically the dbus auth handshake is defined as not being part of the dbus protocol. That's not convincing.