Re: [patch] My AMD IDE driver, v2.7

Martin Dalecki
2002-03-12T11:45:42Z

J. Dow wrote:
> From: "Jeff Garzik" <jgarzik@mandrakesoft.com>
>
>>Your proposal sounds 100% ok to me...
>>
>>For the details of the userspace interface (for both ATA and SCSI), my
>>idea was to use standard read(2) and write(2).
>>
>>Any number of programs can open /dev/ata/hda/control or
>>/dev/scsi/sdc/control. write(2) submits requests, read(2) consumes
>>command responses, perhaps buffering a bit so that multiple responses
>>are not lost if userspace is slow.
>>
>>Maybe it's a cheesy way to avoid ioctl(2), maybe not...
>>
>
> Jeff, from a security aspect would it perhaps be better to have the
> filter always in place and load rule sets through a rigidly controlled
> interface?

You are overdesigning by a broad margin. From a security
point of view (I mean the paranoid one) the whole raw interface whatever
filtered or not should *just not be there*.