[lkml]   [2004]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: K3b and 2.6.9?
    On Monday 30 Aug 2004 23:07, Alan Cox wrote:

    > Folks are working on getting the verify_command list refined, or you
    > can run the burner part of cd-burners setuid (as cdrecord supports -
    > although get the newest one since there was a security hole fixed a few
    > days ago in both cdrecord and star).
    > > Without knowing a better way, I am currently using the same sort of quick
    > > patch as to use k3b on 2.6.9-rc1-bk5 ie:
    > Providing you don't mind any of your users erasing your drive firmware
    > and turning the drive into a brick its fine.

    Thanks. Yes I realize that and understand why this is a good idea to have. But
    most of the verify_command list seems fine and I find the following works,
    but don't know if this is any 'safer' or not... This is the particular test
    that makes the difference to k3b/cdrecord, but I don't know enough to work
    out what it actually does... (this is with 2.6.9-rc1-bk6)

    --- a/drivers/block/scsi_ioctl.c.original 2004-08-30 23:50:16.000000000 +1000
    +++ b/drivers/block/scsi_ioctl.c 2004-08-31 08:37:56.000000000 +1000
    @@ -192,7 +192,7 @@

    /* Write-safe commands just require a writable open.. */
    if (type & CMD_WRITE_SAFE) {
    - if (file->f_mode & FMODE_WRITE)
    +/* if (file->f_mode & FMODE_WRITE) */
    return 0;
    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.019 / U:4.676 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site