Re: still no cd/dvd burning as user with 2.6.9

Jens Axboe
2004-11-03T09:10:54Z

On Wed, Nov 03 2004, Clemens Schwaighofer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/03/2004 05:43 PM, Jens Axboe wrote:
>
> > It should work, are the permissions on your device file correct?
>
> that was the first thing I checked:
>
> gullevek@pluto:~$ ls -l /dev/scd3
> brw-rw---- 1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3
>
> then I thought I am not in the right group:
>
> gullevek@pluto:~$ groups
> users disk cdrom audio operator video staff games
>
> but I am ...
>
> I haven't tried to write a CD, but DVD is definilty not possible,
> because the device is _not_ listed in k3b if started as user. The
> internal CD writer is, so probably I can write here, because before,
> this wasn't even listed ...

Try with this debug patch so we can see if it rejects command it should
not.

===== drivers/block/scsi_ioctl.c 1.57 vs edited =====
--- 1.57/drivers/block/scsi_ioctl.c 2004-10-19 08:06:58 +02:00
+++ edited/drivers/block/scsi_ioctl.c 2004-11-03 10:05:20 +01:00
@@ -220,8 +220,10 @@
return -EINVAL;
if (copy_from_user(cmd, hdr->cmdp, hdr->cmd_len))
return -EFAULT;
- if (verify_command(file, cmd))
+ if (verify_command(file, cmd)) {
+ printk(KERN_ERR "rejected command %x\n", cmd[0]);
return -EPERM;
+ }

/*
* we'll do that later

--
Jens Axboe