From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 16:40:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65B2016A4E7 for ; Tue, 8 Feb 2005 16:40:25 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24AC843D3F for ; Tue, 8 Feb 2005 16:40:25 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 767C451297; Tue, 8 Feb 2005 08:40:24 -0800 (PST) Date: Tue, 8 Feb 2005 08:40:24 -0800 From: Kris Kennaway To: "bsd @ todoo. biz" Message-ID: <20050208164024.GA43179@xor.obsecurity.org> References: <365b15da0d47b600ccf5fff25e3f440f@todoo.biz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <365b15da0d47b600ccf5fff25e3f440f@todoo.biz> User-Agent: Mutt/1.4.2.1i cc: Liste FreeBSD Subject: Re: Problem with mknod for /dev/random => jailed bind configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 16:40:25 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 08, 2005 at 03:38:27PM +0100, bsd @ todoo. biz wrote: > Hello, >=20 > I've tried to configure a bind server in a chroot jail and am facing a=20 > problem with /dev/random > Thaugh I've read the man mknod I have to say that this didn't help me=20 > in solving the problem. >=20 > When I start named with the -g switch here are the error. >=20 > >08-Feb-2005 15:18:22.551 errno2result.c:109: unexpected error: > >08-Feb-2005 15:18:22.551 unable to convert errno to isc_result: 6:=20 > >Device not configured > >08-Feb-2005 15:18:22.551 could not open entropy source /dev/random:=20 > >unexpected error > >08-Feb-2005 15:18:22.551 using pre-chroot entropy source /dev/random >=20 > I've used the following mknod command : >=20 > mknod /var/named/dev/null c 2 2 > mknod /var/named/dev/random c 2 3 >=20 > and also tried : >=20 > mknod random c 245 0 > mknod null c 2 2 >=20 > I've chmod 666 the two files and make shure they are owned by bind:bind= =20 > // ?? You forgot to mention what version of FreeBSD you're running. If it's 5.x, you need to mount an appropriately configured devfs inside the jail. See the jail and devfs manpages. Kris --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCCOt3Wry0BWjoQKURAsUGAJ4pd9XGMnRmi8+qbYG1c7wNA/ydYACeIXrD TeA/vaJH6ppVehg2O2YEjTM= =5Ure -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--