/proc/net/tcp, uid and euid

Christoffer Hall-Frederiksen (hall@diku.dk)
Sat, 1 Jul 2000 00:49:53 +0200


I ran into a little problem with ident the other day. Identd
on my box returned wrong answers when lookup rlogin-connections.
The connections were all made by root. If you use telnet the
problem doesn't exist. The problem is that pidentd (and oidentd)
looks up the uid of the tcp-connections in /proc/net/tcp. But
the uid listed there is not the uid, but the euid. This makes
the rlogin connections appear as if they came from root because
rlogin is suid-root. Is there a reason why /proc/net/tcp lists
the euid and not the uid?

-- 
	Christoffer

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/