Bug 674 - permanently_set_uid() doesn't work on BSDI 4.0.1
Summary: permanently_set_uid() doesn't work on BSDI 4.0.1
Status: CLOSED DUPLICATE of bug 657
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 3.7p1
Hardware: ix86 BSDI
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-18 10:51 AEST by Jay S. Rouman
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay S. Rouman 2003-09-18 10:51:39 AEST
On BSDI 4.0.1, sshd answers the port but closes the connection before
negotiation is complete.  Replacing the permanently_set_uid() function in
uidswap.c with the one from 3.6.1p2 fixed the problem for BSDI.

harry:/home/u/jsr/development/exper/openssh-3.7.1p1(8)# ./sshd -d
debug1: sshd version OpenSSH_3.7.1p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: setgroups() failed: Invalid argument
socket: Protocol not supported
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 192.168.200.50 port 35982
debug1: Client protocol version 2.0; client software version OpenSSH_3.7.1p1
debug1: match: OpenSSH_3.7.1p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.7.1p1
debug1: permanently_set_uid: 30/13
setreuid 30: Operation not permitted
debug1: Calling cleanup 0x8065214(0x0)
Comment 1 Darren Tucker 2003-09-18 11:40:19 AEST
Please see bug #657 for BSDi fixes

*** This bug has been marked as a duplicate of 657 ***
Comment 2 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED