There's no need. The equivalent functionality can already be
implemented in userspace.
------
#include <sys/socket.h>
uid_t getpeereuid(int sd)
{
struct ucred cred;
int len = sizeof (cred);
if (getsockopt(sd,SOL_SOCKET,SO_PEERCRED,&cred,&len))
return -1;
return cred.uid;
}
------
The same can be done for gid, and even pid.
Yes, Linux rules.
-- Michael Bacarella <mbac@nyct.net> Technical Staff / System Development, New York Connect.Net, Ltd. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/