How to find the UID of a client connected to AF_INET socket?

丶灬走出姿态 提交于 2019-12-11 02:48:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!