On Mon, Jan 24 2005, Kasper Sandberg wrote:
> On Mon, 2005-01-24 at 11:46 +1000, Tim Fairchild wrote:
> > On Monday 24 Jan 2005 06:59, Alessandro Suardi wrote:
> > > On Sun, 23 Jan 2005 21:26:55 +0100, Volker Armin Hemmann
> > >
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > have you checked, that cdrecord is not suid root, and
> > > > growisofs/dvd+rw-tools is?
> > > >
> > > > I had some probs, solved with a simple chmod +s growisofs :)
> > >
> > > Lucky you. Burning as root here, cdrecord not suid. Tried also
> > >  burning with a +s growisofs, but...
> > 
> > You can test if it's the kernel/growisofs clashing by hacking the
> > drivers/block/scsi_ioctl.c  code
> > 
> > It's around line 193 in 2.6.9, and line 196 in 2.6.10
> > not sure about 2.6.11
> at line 196
> > 
> > find the code:
> > 
> >         /* Write-safe commands just require a writable open.. */
> >         if (type & CMD_WRITE_SAFE) {
> >                 if (file->f_mode & FMODE_WRITE)
> >                         return 0;
> >         }
> > 
> > edit it to something like:
> > 
> >         /* Write-safe commands just require a writable open.. */
> >         if (type & CMD_WRITE_SAFE) {
> >                 printk ("Write safe command in ");
> >                 if (file->f_mode & FMODE_WRITE)
> >                         printk ("write mode.\n");
> >                 else
> >                         printk ("read mode.\n");
> >                 return 0;
> >         }
> > 
> > Compile the kernel with that and that may make it work and burn dvd and let 
> > you know if it's growisofs sending incorrect commands. You'll get messages 
> > in 
> > dmesg like
> > 
> > Write safe command in read mode.
> > 
> > which means growisofs is still not right. Maybe later version fixed this?
> i got the latest version, and i just did this, nothing of this appeared
> in dmesg, but also, i dont see what scsi_ioctl has to do with anything?
> i dont use scsi emulation

it doesn't have anything to do with ide-scsi scsi emulation,
direct-to-device SG_IO uses drivers/block/scsi_ioctl.c (note the block/
directory, not scsi/).

strange that it doesn't catch anything...

-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to