lkml.org 
[lkml]   [2002]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] My AMD IDE driver, v2.7
Linus Torvalds wrote:

>On Mon, 11 Mar 2002, Jeff Garzik wrote:
>
>>1) There should be a raw device command interface (not ATA or SCSI specific)
>>
>
>Well, since the raw commands themselves will be bus-specific, you can't
>really avoid THAT part.
>
>The thing I want to be generic is the fact that everybody uses the
>"request->cmd[]" array, along with the flags in "request->flags" to
>specify what kind of command it is.
>
>We actually have this infrastructure already, it's just not fully used.
>
I omitted "for userspace" :)

I was referring to having a userspace conduit for submitting requests, a
la the taskfile ioctl now.


>>3) There should be capability to optionally install filter the raw
>>device command interface. The filter is built into the kernel at
>>compile-time, but can also be disabled at boot time.
>>
>
>This is the part I really don't like.
>
>Thinking like a sysadmin, I want to be able to run programs that I would
>not allow my users to run or want to be run accidentally. And I do _not_
>want to reboot my kernel just because one of my mirrored disks died, I
>hot-replaced it, and I notice that I need to upgrade the firmware on the
>thing to make it play nice with the other disks in the array.
>
>See? A setup that either allows everything or nothing is fundamentally
>flawed in this kind of situation - suddenly I as a sysadmin cannot do
>something without bringing the machine down. Which makes all the hotplug
>interfaces useless - or then I as a sysadmin just have to leave a kernel
>in place that allows the kinds of raw command accesses that I am so scared
>of.
>
>One solution may be to have the whole raw cmd thing as a loadable module,
>and then I can make sure that it's not even available on the system so
>that I have to do some work to find it, and somebody elses program won't
>just know what to do.
>
>But in that case is should be far removed from the IDE driver - it would
>just be a module that inserts a raw request on the request queue, and NOT
>inside some subsystem driver that I obviously want to have available all
>the time.
>
I like this solution, it was the one I was thinking of :)

The entire userspace raw cmd ioctl should be a separate module for
precisely the issues you outlined. If they choose, people can compile
that module into the static kernel image, including filter. Or they can
use the module without the filter. Or they can not use the module at
all. Etc.

I do understand the problems stemming from the inflexibility of the
filter that's being discussed, but I disagree that it's a fundamental
flaw. It's an option that some people -shouldn't- choose, for various
reasons. But that's an issue for documentation and system integrators.

Jeff



-
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site