no need to call getpeereid() anymore

This commit is contained in:
Alexandre Ratchov 2011-04-18 11:25:56 +02:00
parent 2b7b6ed7c6
commit 6c7f04bf10
1 changed files with 0 additions and 12 deletions

View File

@ -326,18 +326,6 @@ sock_new(struct fileops *ops, int fd)
{
struct aproc *rproc, *wproc;
struct sock *f;
uid_t uid, gid;
/*
* ensure that all connections belong to the same user,
* for privacy reasons.
*
* XXX: is there a portable way of doing this ?
*/
if (getpeereid(fd, &uid, &gid) < 0) {
close(fd);
return NULL;
}
f = (struct sock *)pipe_new(ops, fd, "sock");
if (f == NULL) {