Re: [PATCH] register_blkdev

Alan Cox (alan@lxorguk.ukuu.org.uk)
08 Mar 2003 23:56:35 +0000


On Sat, 2003-03-08 at 22:36, Linus Torvalds wrote:
> I certainly agree that we'll need to open up the number space, but I
> really do think that the way to _manage_ it is something like what Greg
> pointed to - dynamic tols with "rules" on allocation, instead of the
> stupid static manual assignment thing.

Greg's tools still have unsolved security holes in them. We still have
unsolved persistence of permissions and reuse problems. I think they are
soluble. The current insoluble dirty great security hole we have is
lack of vhangup for non tty devices (ie BSD revoke). Right now that
allows some quite nasty things to occur if you ever had console access.

> We're pretty close to it already. I thought some Linux vendors are already
> starting to pick up on the hotplugging tools, simply because there are no
> real alternatives.

For certain kinds of device yes.

> And once you do it that way, the static numbers are meaningless. And good
> riddance.

Static naming/permissions management is current simply the best of
available evils for many things. With stuff like modem arrays on serial
ports its also neccessary to know what goes where. I'm all for moving to
setups when possible where things like SCSI volumes carry a volume name
and permission/acl data in the label

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/