* Vendor specific SCSI opcodes
@ 2005-08-15 13:34 Mathieu Fluhr
2005-08-15 14:42 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Fluhr @ 2005-08-15 13:34 UTC (permalink / raw)
To: linux-kernel
Hello all
I have a problem when using vendor-specific SCSI opcodes with the
ide-cdrom drive. Unless I run the CDROM_SEND_PACKET ioctl as root, I am
getting an error.... plus a kernel warning:
Aug 10 12:09:08 localhost kernel: scsi: unknown opcode 0xfa
(..and there is not only 0xfa ad opcode ;-)
As far as I have understood the kernel source code, the problem seems to
be related to the verify_command() introduced in 2.6.8. The thing is
that all these vendor-specific opcodes are not inside the 'cmd_type',
and so not 'safe'.
Nice thing is that when I use exactly the same device over an IDE-to-USB
bridge, it is working like a charm ;-)
So is there a way to bypass this command verification and to let the
program work without launching it as root user ?
Best Regards,
Mathieu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Vendor specific SCSI opcodes
2005-08-15 13:34 Vendor specific SCSI opcodes Mathieu Fluhr
@ 2005-08-15 14:42 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2005-08-15 14:42 UTC (permalink / raw)
To: Mathieu Fluhr; +Cc: linux-kernel
On Llu, 2005-08-15 at 15:34 +0200, Mathieu Fluhr wrote:
> So is there a way to bypass this command verification and to let the
> program work without launching it as root user ?
If there was what would be the point in having a root user. The vendor
specific commands include functionality like "erase firmware" that
simply isn't appropriate to give to unprivileged applications.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-15 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15 13:34 Vendor specific SCSI opcodes Mathieu Fluhr
2005-08-15 14:42 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome