From: Elias da Silva <silva@aurigatec.de>
To: Jens Axboe <axboe@suse.de>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/block/scsi_ioctl.c, Video DVD playback support
Date: Mon, 24 Jan 2005 20:59:06 +0100 [thread overview]
Message-ID: <200501242059.06307.silva@aurigatec.de> (raw)
In-Reply-To: <20050124083600.GA3347@suse.de>
> On Sat, Jan 22 2005, Elias da Silva wrote:
> > Attached patch fixes a problem of reading Video DVDs
> > through the cdrom_ioctl interface. VMware is among
> > the prominent victims.
> >
> > The bug was introduced in kernel version 2.6.8 in the
> > function verify_command().
>
> It's not a bug, add write permission to the device for the user using
> the drive.
Hi.
The device already has write permission for the user using the
drive... and this is not the point.
The point is
a. the user (program) wants to read a protected DVD,
b. the user has permission to read the device,
c. since kernel 2.6.8 the user can't use his right to read a
DVD media, because according to verify_command() he is forced
to open the device with RW mode instead of RONLY.
This is true for protected media because of the authentication
process needed between "host" and DVD device. IMHO,
the classification of the opcodes
a. GPCMD_SEND_KEY and
b. GPCMD_SET_STREAMING
as only "save for write" is wrong.
Furthermore, if you use
a. cdrom_ioctl (..., DVD_AUTH,...) instead of
b. cdrom_ioctl (..., CDROM_SEND_PACKET,...)
-> scsi_cmd_ioctl()-> sg_io()-> verify_command()
the same authentication procedure works as expected on a
RONLY opened device!
Please rethink your decisions introduced with verify_command()
and make for example VMware work _again_ with Video DVDs.
Regards,
Elias
next prev parent reply other threads:[~2005-01-24 20:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-22 2:27 [PATCH] drivers/block/scsi_ioctl.c, Video DVD playback support Elias da Silva
2005-01-24 8:36 ` Jens Axboe
2005-01-24 19:59 ` Elias da Silva [this message]
2005-01-24 20:39 ` Jens Axboe
2005-01-24 22:10 ` Elias da Silva
2005-01-25 0:01 ` Alan Cox
2005-01-25 8:05 ` Jens Axboe
2005-01-25 9:29 ` Elias da Silva
2005-01-25 12:44 ` Alan Cox
2005-01-25 15:52 ` Elias da Silva
2005-01-25 12:45 ` Jens Axboe
2005-01-25 16:13 ` Elias da Silva
2005-01-25 16:21 ` Jens Axboe
2005-01-25 16:28 ` Elias da Silva
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=200501242059.06307.silva@aurigatec.de \
--to=silva@aurigatec.de \
--cc=axboe@suse.de \
--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