linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: growisofs stopped working with 2.6.8
  2004-08-16 16:38 growisofs stopped working with 2.6.8 Tony A. Lambley
@ 2004-08-16 16:01 ` Alan Cox
  2004-08-16 17:59   ` Tony A. Lambley
  2004-08-16 17:28 ` Adam Jones
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2004-08-16 16:01 UTC (permalink / raw)
  To: Tony A. Lambley; +Cc: LKML, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

On Llu, 2004-08-16 at 17:38, Tony A. Lambley wrote:
> Hi, burning a dvd iso now fails :(
> 
> $ growisofs -Z /dev/hdc=file.iso
> :-( unable to GET CONFIGURATION: Operation not permitted
> :-( non-MMC unit?

We fixed some security holes. In doing so we tightened up so a few apps
that worked before no longer work except as root. Thanks for the error
message. Thats helpful as it suggests the following patch.

(and does it help K3B ?)






[-- Attachment #2: a1 --]
[-- Type: text/plain, Size: 379 bytes --]

--- drivers/block/scsi_ioctl.c~	2004-08-16 18:01:36.627301624 +0100
+++ drivers/block/scsi_ioctl.c	2004-08-16 18:01:36.627301624 +0100
@@ -146,6 +146,7 @@
 		safe_for_read(GPCMD_READ_TOC_PMA_ATIP),
 		safe_for_read(GPCMD_REPORT_KEY),
 		safe_for_read(GPCMD_SCAN),
+		safe_for_read(GPCMD_GET_CONFIGURATION),
 
 		/* Basic writing commands */
 		safe_for_write(WRITE_6),

^ permalink raw reply	[flat|nested] 5+ messages in thread

* growisofs stopped working with 2.6.8
@ 2004-08-16 16:38 Tony A. Lambley
  2004-08-16 16:01 ` Alan Cox
  2004-08-16 17:28 ` Adam Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Tony A. Lambley @ 2004-08-16 16:38 UTC (permalink / raw)
  To: LKML

Hi, burning a dvd iso now fails :(

$ growisofs -Z /dev/hdc=file.iso
:-( unable to GET CONFIGURATION: Operation not permitted
:-( non-MMC unit?

Reverting back to 2.6.7 allows burning to work again. I've googled and
it would appear I'm not the only one with this.

Does anyone have any ideas why this would be happening?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: growisofs stopped working with 2.6.8
  2004-08-16 16:38 growisofs stopped working with 2.6.8 Tony A. Lambley
  2004-08-16 16:01 ` Alan Cox
@ 2004-08-16 17:28 ` Adam Jones
  1 sibling, 0 replies; 5+ messages in thread
From: Adam Jones @ 2004-08-16 17:28 UTC (permalink / raw)
  To: linux-kernel

In a futile gesture against entropy, Tony A. Lambley wrote:
> Hi, burning a dvd iso now fails :(
> 
> $ growisofs -Z /dev/hdc=file.iso
> :-( unable to GET CONFIGURATION: Operation not permitted
> :-( non-MMC unit?

In case it's helpful, when running growisofs setuid from a normal user
account (with write access to the device node), the error is:

:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

Should locking the drive door be allowed for normal users?
-- 
Adam Jones (adam@yggdrasl.demon.co.uk)(http://www.yggdrasl.demon.co.uk/)
.oO("what's big iron?"                                                 )
PGP public key: http://www.yggdrasl.demon.co.uk/pubkey.asc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: growisofs stopped working with 2.6.8
  2004-08-16 16:01 ` Alan Cox
@ 2004-08-16 17:59   ` Tony A. Lambley
  2004-08-16 18:14     ` Peter Osterlund
  0 siblings, 1 reply; 5+ messages in thread
From: Tony A. Lambley @ 2004-08-16 17:59 UTC (permalink / raw)
  To: Alan Cox; +Cc: LKML, linux-scsi

It still fails, but I get a different message with the patch:

$ growisofs -Z /dev/dvd=file.iso
Executing 'builtin_dd if=file.iso of=/dev/dvd obs=32k seek=0'
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

K3B fails with the same message as above.

As you say, it does indeed burn fine as root.


On Mon, 2004-08-16 at 12:01, Alan Cox wrote:
> On Llu, 2004-08-16 at 17:38, Tony A. Lambley wrote:
> > Hi, burning a dvd iso now fails :(
> > 
> > $ growisofs -Z /dev/hdc=file.iso
> > :-( unable to GET CONFIGURATION: Operation not permitted
> > :-( non-MMC unit?
> 
> We fixed some security holes. In doing so we tightened up so a few apps
> that worked before no longer work except as root. Thanks for the error
> message. Thats helpful as it suggests the following patch.
> 
> (and does it help K3B ?)
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> --- drivers/block/scsi_ioctl.c~	2004-08-16 18:01:36.627301624 +0100
> +++ drivers/block/scsi_ioctl.c	2004-08-16 18:01:36.627301624 +0100
> @@ -146,6 +146,7 @@
>  		safe_for_read(GPCMD_READ_TOC_PMA_ATIP),
>  		safe_for_read(GPCMD_REPORT_KEY),
>  		safe_for_read(GPCMD_SCAN),
> +		safe_for_read(GPCMD_GET_CONFIGURATION),
>  
>  		/* Basic writing commands */
>  		safe_for_write(WRITE_6),


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: growisofs stopped working with 2.6.8
  2004-08-16 17:59   ` Tony A. Lambley
@ 2004-08-16 18:14     ` Peter Osterlund
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Osterlund @ 2004-08-16 18:14 UTC (permalink / raw)
  To: Tony A. Lambley; +Cc: Alan Cox, LKML, linux-scsi

"Tony A. Lambley" <tal@vextech.net> writes:

> It still fails, but I get a different message with the patch:
> 
> $ growisofs -Z /dev/dvd=file.iso
> Executing 'builtin_dd if=file.iso of=/dev/dvd obs=32k seek=0'
> :-( unable to PREVENT MEDIA REMOVAL: Operation not permitted
> 
> K3B fails with the same message as above.
> 
> As you say, it does indeed burn fine as root.

The patch below is needed for a start, but it's not enough, because
growisofs opens the device in read-only mode, so WRITE_10 fails
anyway.

--- drivers/block/scsi_ioctl.c~cdrw-filter	2004-08-16 17:13:23.000000000 +0200
+++ drivers/block/scsi_ioctl.c	2004-08-16 18:44:15.000000000 +0200
@@ -146,6 +146,13 @@
 		safe_for_read(GPCMD_READ_TOC_PMA_ATIP),
 		safe_for_read(GPCMD_REPORT_KEY),
 		safe_for_read(GPCMD_SCAN),
+		safe_for_read(GPCMD_GET_CONFIGURATION),
+		safe_for_read(GPCMD_READ_FORMAT_CAPACITIES),
+		safe_for_read(GPCMD_GET_EVENT_STATUS_NOTIFICATION),
+		safe_for_read(GPCMD_GET_PERFORMANCE),
+
+		safe_for_write(GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL),
+		safe_for_write(GPCMD_FLUSH_CACHE),
 
 		/* Basic writing commands */
 		safe_for_write(WRITE_6),

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-16 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-16 16:38 growisofs stopped working with 2.6.8 Tony A. Lambley
2004-08-16 16:01 ` Alan Cox
2004-08-16 17:59   ` Tony A. Lambley
2004-08-16 18:14     ` Peter Osterlund
2004-08-16 17:28 ` Adam Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).