Re: [PATCH] register_blkdev

Alan Cox
2003-03-08T22:40:06Z

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