[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#239999: Debian bug #239999: an explanation of the cause



Hi.
I have some information regarding the bug you reported ("Read from socket failed on Alpha" [and SPARC]).

This issue is caused because OpenSSH is configured to use setresuid (and setresgid), but the kernel you are running does not actually implement that syscall. When sshd attempts to use setresgid it fails (with ENOSYS), and sshd aborts.

OpenSSH's configure specifically tests for this condition, but in your case it appears that sshd was built on a system that has it (eg kernel 2.4.x) but is run on a system that does not (eg kernel 2.2.x).

Debian may wish to manually define BROKEN_SETRESUID and BROKEN_SETRESGID during the build, or add some kind of run-time check for this condition.

	The (closed) upstream bug report is:
http://bugzilla.mindrot.org/show_bug.cgi?id=645

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.





Reply to: