From owner-freebsd-hackers Fri Jan 23 08:37:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA16761 for hackers-outgoing; Fri, 23 Jan 1998 08:37:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from webfarm1.whistle.com (webfarm1.whistle.com [207.76.204.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA16622; Fri, 23 Jan 1998 08:36:11 -0800 (PST) (envelope-from julian@whistle.com) Received: (from smap@localhost) by webfarm1.whistle.com (8.8.5/8.8.5) id VAA22341; Sat, 17 Jan 1998 21:30:17 -0800 (PST) X-Authentication-Warning: webfarm1.whistle.com: smap set sender to using -f Received: from alpo.whistle.com(alpo.isp.whistle.com 207.76.204.38) by webfarm1.whistle.com via smap (V2.0) id xma022339; Sat, 17 Jan 98 21:30:15 -0800 Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id VAA08659; Sat, 17 Jan 1998 21:19:11 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd008657; Sat Jan 17 21:19:02 1998 Date: Sat, 17 Jan 1998 21:15:47 -0800 (PST) From: Julian Elischer To: Paul Traina cc: bde@FreeBSD.ORG, dg@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: isdisk() kludge in kernel In-Reply-To: <199801172038.MAA24817@red.juniper.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Sat, 17 Jan 1998, Paul Traina wrote: > I was looking at isdisk and wanted to hurl chunks. If DEVFS becomes accepeted then this all changes, as all disk accesses go through the same driver no matter what physical device type. Thedisk type interface is abstracted to a common module which handles such things as acceses, partitionning, open semantics, and IO remapping, on behalf of the lower level drivers, which know how to do nothing except read and write blocks. > > This is used by spec_open to determine if we should be allowed to open a > disk device when securelevel >= 1. > > I'd like to propose changing spec_open to simply NEVER allowing the open of > a block device, or character device, if a character device has a block > device associated with it and eliminate isdisk() in kern_conf entirely. > > Objections? (p.s. I found this in 2.2.5, haven't checked 3.0 yet to see if > it was fixed, if it was, sorry for bothering you). > Some things have changed but bigger changes are on the horizon.