[lkml]   [2005]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] drivers/block/scsi_ioctl.c, Video DVD playback support
> 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.

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


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.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:09    [W:0.058 / U:1.440 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site