Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 19:42:12 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@FreeBSD.org, j@uriah.heep.sax.de
Subject:   Re: secure level diffs to kern_mib.c, LINT
Message-ID:  <199610070942.TAA24670@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >Not all SCSI control devices are disk devices.
>
>> I think they are all disk devices.  Disk devices are by definition
>> those that return nonzero for isdisk().  The control devices have the
>> same major number as devices that really are disks, so they are
>> classified as disks.
>
>Also /dev/uk0.ctl, /dev/pt0.ctl?

Ah, you just found a bug in isdisk().  isdisk() should be named something
like is_a_disklike_potential_security_hole(), since it is only used for
the securelevel checks in spec_vnops.c and not for anything directly to
do with disks.

Also missing but listed in majors.i386: ccd, ch, sctarg, ssc, su.  ccd
is certainly for disks.  ccd is is also missing from devices.i386.
devices.i386 is only used by config for determining the device numbers
of the devices in the "root on xxx" and "dumps on xxx" statements.  It
cleaims to only be used for swap devices.  Please fix some of these
bogons.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610070942.TAA24670>