growisofs stopped working with 2.6.8
Subsystems (2)
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?
Quoted 5 lines · Tony A. Lambley
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 ?)
block/scsi_ioctl.c renamed from block/scsi_ioctl.c~ +1 -0
@@ -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),
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.
Quoted 29 lines · Alan Cox
Quoted 5 lines · Tony A. Lambley
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 ?)
______________________________________________________________________
block/scsi_ioctl.c renamed from block/scsi_ioctl.c~ +1
-0@@ -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),
Quoted 9 lines · Tony A. Lambley
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 permittedK3B 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.
block/scsi_ioctl.c renamed from block/scsi_ioctl.c~cdrw-filter +7 -0
@@ -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),
Signature · 2 lines
Peter Osterlund - [email protected] http://w1.894.telia.com/~u89404340
Quoted 5 lines · Tony A. Lambley
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?
Signature · 3 lines
Adam Jones ([email protected])(http://www.yggdrasl.demon.co.uk/) .oO("what's big iron?" ) PGP public key: http://www.yggdrasl.demon.co.uk/pubkey.asc