From owner-freebsd-hackers Mon Nov 13 22:49: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 4992137B479 for ; Mon, 13 Nov 2000 22:49:00 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAE6mns26634; Mon, 13 Nov 2000 22:48:49 -0800 (PST) Date: Mon, 13 Nov 2000 22:48:49 -0800 From: Alfred Perlstein To: Mark Murray Cc: hackers@freebsd.org Subject: Re: patches for 4.x devrandom so that bind "works" Message-ID: <20001113224849.Z11449@fw.wintelcom.net> References: <20001113160614.R11449@fw.wintelcom.net> <200011140616.eAE6Gvw04883@grimreaper.grondar.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200011140616.eAE6Gvw04883@grimreaper.grondar.za>; from mark@grondar.za on Tue, Nov 14, 2000 at 08:16:57AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Mark Murray [001113 22:17] wrote: > > I was playing with bind9 and got the typical: > > > > On FreeBSD systems, the server logs error messages like "fcntl(8, > > F_SETFL, 4): Inappropriate ioctl for device". This is due to > > a bug in the FreeSBD /dev/random device. The bug has been > > reported to the FreeBSD maintainers. Versions of OpenBSD prior > > to 2.8 have a similar problem. > > > > I took a look at what OpenBSD did and it looks like they just > > no-op'd out the ioctl: > > > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/rnd.c?r1=1.40&r2=1.41 > > > > I have a patch that seems to shut bind up, but I'm not 100% sure > > this is the right fix, as it looks like it just fakes the nonblocking > > access to the random devices. > > > > Here's my patch (I can probably generate this for alpha): > > > > Index: mem.c [snip] > > > > Did I miss part of the OpenBSD delta? This looks too easy. :( > > Hi > > I have something similar to this, and it goes slightly further. > > Yes, it is this simple :-). Can you get it ready for 4.2? I'd like to see us be able to run bind9 in the next release. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message