public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [bug] 2.6.8: CDROM_SEND_PACKET ioctls failing as non-root on ide scsi drives
@ 2004-10-04 13:09 Luke Kenneth Casson Leighton
  2004-10-04 12:59 ` Jens Axboe
  2004-10-04 13:30 ` Sean Neakums
  0 siblings, 2 replies; 9+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-10-04 13:09 UTC (permalink / raw)
  To: linux-kernel

kernel 2.6.8.  ioctl ("/dev/hdc", CDROM_SEND_PACKET, cmd)

commands that are failing as non-root, even when permission is granted
rwxrwxrwx to /dev/hdc, are, according to some debug info added to k3b:

	GET CONFIGURATION (46)
	error code: 0
	sense key: NO SENSE (2)
	asc: 0
	ascq: 0

and:

	MODE SELECT (55)
	error code: 0
	sense key: NO SENSE (2)
	asc: 0
	ascq: 0

the result is that k3b cannot determine that the drive exists, therefore
it cannot use it even though cdrecord might actually work.


as root, the following errors occur:

	MODE SELECT (46)
	errorcode: 70
	sense key: ILLEGAL REQUEST (5)
	asc: 26
	ascq: 0

	READ DVD STRUCTURE (ad)
	errorcode: 70
	sense key: NOT READY (2)
	asc: 3a
	ascq: 0

presumably it can be concluded that the GET CONFIGURATION ioctl command
is the one at fault.

... what gives?

l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


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

end of thread, other threads:[~2004-10-04 14:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 13:09 [bug] 2.6.8: CDROM_SEND_PACKET ioctls failing as non-root on ide scsi drives Luke Kenneth Casson Leighton
2004-10-04 12:59 ` Jens Axboe
2004-10-04 14:38   ` Luke Kenneth Casson Leighton
2004-10-04 13:30 ` Sean Neakums
2004-10-04 13:36   ` Jens Axboe
2004-10-04 13:49     ` Sean Neakums
2004-10-04 13:55       ` Jens Axboe
2004-10-04 14:23       ` Luke Kenneth Casson Leighton
2004-10-04 14:20   ` Luke Kenneth Casson Leighton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox