Bug#364635: Debian bug #364635: possible workaround
Hi.
I came across the Debian bug that you reported and have a suggestion:
does creating a "lib" directory under the sshd chroot (ie "mkdir
/var/empty/lib") resolve the problem? If it does then it's a bug in
glibc which causes segfaults during name lookups in chroots, see
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=111045930530623 for
the gory details.
You can also try this seeing if this minimal test case crashes when run
as root:
#include <stdio.h>
#include <netdb.h>
int
main(void)
{
chroot("/tmp");
chdir("/");
gethostbyname("foo");
}
--
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: