[lkml]   [2004]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PATCH: cdrecord: avoiding scsi device numbering for ide devices
    Let me give some additional remarks to clear up things:

    Joerg Schilling <> wrote:

    > Pascal Schmidt <> wrote:

    > > The previous Linux implementation allowed users with *read* access
    > > to the device to send arbitrary SG_IO commands. Giving read permission
    > This is of course a kernel bug - but it could be easily fixed.
    > My scg driver for SunOS requires write permissions since it has been
    > created in August 1986.

    Not checking for Write access permissions at this place is a typical mistake
    made by novice programmers, so I never thought this could be in Linux.....

    > > to normal users is quite common, to allow them to run isosize or play
    > > their freshly burned SVCDs with mplayer.
    > So changing the kernel to require write permissions would be a simple fix that
    > would help without breaking cdrtools as libscg of course opens the devices with
    > O_RDWR.

    If Linux still noes not check for write permissions, I would consider there is
    still a bug.

    If there is a list of "aparently safe" SCSI commands that are allowed to be
    executed, then there is another bug in Linux. The only SCSI command that could
    be called safe if Test Unit Ready and even this only if not send more then once
    every few seconds.

    There are several SCSI commands that look safe but would result in coasters
    if issued while a CD or DVD is written.

    Conclusion: It makes no sense to start implementing a fine grained security
    model before basic secutity has been done correctly.

    The best immediate fix for the problem is to just check for read & write
    permissions on the file descriptor and otherwise revert to how it has been
    before 2.6.8.


    -- (home) Jörg Schilling D-13353 Berlin (uni) If you don't have iso-8859-1 (work) chars I am J"org Schilling
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:05    [W:0.021 / U:0.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site