Package: kernel-source-2.6.10
Version: 2.6.10-4
Severity: important
Tags: patch

When running as normal user with kernel 2.6.10, growisofs gives the
following error when attempting to burn a DVD:

Executing 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

Running as root works fine.

I found this patch on LKML, and can now burn as normal user:

--- linux-2.6.11-mm1/drivers/block/scsi_ioctl.c.orig    2005-01-17
20:42:40.000000000 +0100
+++ linux-2.6.11-mm1/drivers/block/scsi_ioctl.c 2005-01-17
20:43:14.000000000 +0100
@@ -197,9 +197,7 @@ static int verify_command(struct file *f
        if (type & CMD_WRITE_SAFE) {
                        if (file->f_mode & FMODE_WRITE)
                                                return 0;
                                                -       }
                                                -
                                                -       if (!(type &
                                                        CMD_WARNED)) {
                                                        +       } else
                                                        if (!(type &
                                                        CMD_WARNED)) {
                                                                        
cmd_type[cmd[0]]
                                                                        =
                                                                        
CMD_WARNED;
                                                                                
        printk(KERN_WARNING
                                                                                
        "scsi:
                                                                                
        unknown
                                                                                
        opcode
                                                                                
        0x%02x\n",
                                                                                
        cmd[0]);
                                                                                
                }

Link to patch web page:
http://marc.theaimsgroup.com/?l=linux-kernel&m=110599420505734&w=2


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-20050119
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages kernel-source-2.6.10 depends on:
ii  binutils                      2.15-5     The GNU assembler, linker and bina
ii  bzip2                         1.0.2-3    high-quality block-sorting file co
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities

-- no debconf information
--- linux-2.6.11-mm1/drivers/block/scsi_ioctl.c.orig    2005-01-17 
20:42:40.000000000 +0100
+++ linux-2.6.11-mm1/drivers/block/scsi_ioctl.c 2005-01-17 20:43:14.000000000 
+0100
@@ -197,9 +197,7 @@ static int verify_command(struct file *f
        if (type & CMD_WRITE_SAFE) {
                if (file->f_mode & FMODE_WRITE)
                        return 0;
-       }
-
-       if (!(type & CMD_WARNED)) {
+       } else if (!(type & CMD_WARNED)) {
                cmd_type[cmd[0]] = CMD_WARNED;
                printk(KERN_WARNING "scsi: unknown opcode 0x%02x\n", cmd[0]);
        }

Reply via email to