public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Clemens Schwaighofer <cs@tequila.co.jp>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: still no cd/dvd burning as user with 2.6.9
Date: Wed, 3 Nov 2004 10:05:50 +0100	[thread overview]
Message-ID: <20041103090550.GG10434@suse.de> (raw)
In-Reply-To: <41889EB5.3060304@tequila.co.jp>

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


  reply	other threads:[~2004-11-03  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-03  8:35 still no cd/dvd burning as user with 2.6.9 Clemens Schwaighofer
2004-11-03  8:43 ` Jens Axboe
2004-11-03  9:02   ` Clemens Schwaighofer
2004-11-03  9:05     ` Jens Axboe [this message]
2004-11-03 23:21       ` Clemens Schwaighofer
2004-11-04  9:19         ` Jens Axboe
2004-11-04 12:06           ` Clemens Schwaighofer
2004-11-03  9:15     ` Emiliano 'AlberT' Gabrielli
2004-11-03  9:22     ` Pawel Sikora
2004-11-03  8:59 ` Alexander E. Patrakov
2004-11-04  0:51   ` Clemens Schwaighofer
2004-11-03 22:54 ` Bill Davidsen
2004-11-03 23:07   ` Clemens Schwaighofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041103090550.GG10434@suse.de \
    --to=axboe@suse.de \
    --cc=cs@tequila.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox