From owner-freebsd-security Wed Jul 24 11:18:33 2002 Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4453037B400 for ; Wed, 24 Jul 2002 11:18:29 -0700 (PDT) Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 5427F43E65 for ; Wed, 24 Jul 2002 11:18:27 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 63420 invoked by uid 85); 24 Jul 2002 18:32:46 -0000 Received: from sbnd.online.bg (HELO straylight.ringlet.net) (217.75.129.196) by south.nanolink.com with SMTP; 24 Jul 2002 18:32:44 -0000 Received: (qmail 33554 invoked by uid 1000); 24 Jul 2002 18:18:01 -0000 Date: Wed, 24 Jul 2002 21:18:01 +0300 From: Peter Pentchev To: Tony Finch Cc: des@freebsd.org, dinoex@freebsd.org, freebsd-security@freebsd.org Subject: Re: sshd privsep dns lookup bug Message-ID: <20020724181801.GB31448@straylight.oblivion.bg> Mail-Followup-To: Tony Finch , des@freebsd.org, dinoex@freebsd.org, freebsd-security@freebsd.org References: <20020724163447.B8886@chiark.greenend.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <20020724163447.B8886@chiark.greenend.org.uk> User-Agent: Mutt/1.5.1i X-Virus-Scanned: by Nik's Monitoring Daemon (AMaViS perl-11d ) Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 24, 2002 at 04:34:47PM +0100, Tony Finch wrote: > The call to get_canonical_hostname() at line 145 of the FreeBSD version > of openssh-portable causes problems with privilege separation. It happens > to be the first call to the resolver, but because the code is running > chrooted at that point, it cannot read /etc/resolv.conf so fails to > initialize itself correctly. This causes the DNS lookup to fail, and > in some configurations to hang for half a minute. I believe this has been pointed out several times, including on this list, and there is nothing stopping you from installing the system's resolv.conf into the /var/empty/etc/ directory, right? :) Okay, so maybe it should be documented somewhere.. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If there were no counterfactuals, this sentence would not have been paradox= ical. --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9Pu9Z7Ri2jRYZRVMRAlzNAKCTpfJnrvwrLLiUOei70xKnWnC/zwCgkonv 0iYbMQ9O5+X1+Wc6xG0xEJk= =vHqx -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message