Showing 2 posts
One of the problems of learning new stuff based on trial-and-error
iterations is that it is very easy to miss important details… but
that’s the price to pay when there is no decent documentation available
for a given feature. We saw
yesterday
multiple details about LOCAL_CREDS socket credentials and, as you may
deduce, I missed some.
First of all I assumed that setting the LOCAL_CREDS option only
affected the next received message (I didn’t mention this explicitly in
the post though). It turns out that this is incorrect: enabling this
option makes the socket transmit credentials information on each message
until the option is disabled again.
August 28, 2006
·
Tags:
credentials, netbsd, sockets
Continue reading (about
2 minutes)
Socket credentials is a feature that allows a user process to receive the credentials (UID, GID, etc.) of the process at the other end of a communication socket in a safe way. The operating system is in charge of managing this information, sent separately from the data flow, so that the user processes cannot fake it. There are many different implementations of this concept out there as you can imagine.
August 27, 2006
·
Tags:
credentials, netbsd, sockets
Continue reading (about
4 minutes)