问题
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.
来源:https://stackoverflow.com/questions/44554362/how-to-find-the-uid-of-a-client-connected-to-af-inet-socket