diff -urN linux-2.4.0-test2/net/socket.c linux/net/socket.c --- linux-2.4.0-test2/net/socket.c Wed Jun 21 19:10:02 2000 +++ linux/net/socket.c Thu Jul 6 21:45:55 2000 @@ -818,6 +818,13 @@ sock->type = type; + if ((domain != PF_LOCAL) && + (domain != PF_UNIX) && + sock->inode) { /* is this needed? */ + sock->inode->i_uid = current->uid; + sock->inode->i_gid = current->gid; + } + if ((i = net_families[family]->create(sock, protocol)) < 0) { sock_release(sock);