Is there some way or something similar like ucred for AF_UNIX in the case of AF_INET sockets (TCP in my case) for finding out the UID of the client connected to my socket?
There's also /proc/net/tcp but it shows the UID of the creator of the socket and not of the connected client.
Thank you.