Re: uid change in sock_alloc breaks identd

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 19 Sep 1999 00:41:29 +0100 (BST)


> - inode->i_uid = current->uid;
> - inode->i_gid = current->gid;
> + inode->i_uid = current->fsuid;
> + inode->i_gid = current->fsgid;
>
> Now in the case of a setuid client like rlogin, the real uid is ther user

Well your rlogin should have dropped back to the real user except for
the call to bind() 8). The above also fixes well designed apps where if you
ran them under su you got a wrong report 8)

Alan

-
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/