Date: Sun, 18 Jan 1998 14:29:57 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@FreeBSD.ORG, dg@FreeBSD.ORG, pst@juniper.net Cc: hackers@FreeBSD.ORG Subject: Re: isdisk() kludge in kernel Message-ID: <199801180329.OAA13387@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>I was looking at isdisk and wanted to hurl chunks. > >This is used by spec_open to determine if we should be allowed to open a >disk device when securelevel >= 1. It isn't even used in -current. >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. This would break at least backups to SCSI tape devices, since st has both block and character devices, but tapes aren't disks. Perhaps the broken version is correct - isdisk() really means isasecurityholeifmountable(). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801180329.OAA13387>