Skip to contentSkip to conversation

scsi cd: VariRec, GigaRec and PowerRec as user

PATCH James Bottomley 4 participants 4 messages Mar 8, 2006 1 message not in the archive SCSI

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Wed, 2006-03-08 at 00:14 -0800, [email protected] wrote:

From: Thomas Maguin <[email protected]>

This patch allows normal users to eectute some Plextor drives commands:

Quoted 7 lines

- Hide CD-R
- SingleSession
- SpeedRead
- PowerRec
- VariRec
- GigaRec

This one just isn't safe. We can't add vendor specific commands to the permissions table because they mean different things to different vendors ... get mode on one could be halt and catch fire on another, so the whole concept of safety via command verification is lost.

I don't happen to believe in this type of command verification anyway, so I'd be perfectly happy to switch this over to a better facility (like capabilities), but while you're claiming to vet commands, you have to be logically correct (which means no vendor specific commands).

James

#2 lore raw
Quoted 19 lines · James Bottomley
Quoted 5 lines · On Wed, 2006-03-08 at 00:14 -0800, [email protected] wrote:

From: Thomas Maguin <[email protected]>

This patch allows normal users to eectute some Plextor drives commands:

Quoted 7 lines

- Hide CD-R
- SingleSession
- SpeedRead
- PowerRec
- VariRec
- GigaRec

This one just isn't safe. We can't add vendor specific commands to the permissions table because they mean different things to different vendors ... get mode on one could be halt and catch fire on another, so the whole concept of safety via command verification is lost.

Quoted 4 lines

I don't happen to believe in this type of command verification anyway, so I'd be perfectly happy to switch this over to a better facility (like capabilities), but while you're claiming to vet commands, you have to be logically correct (which means no vendor specific commands).

I have to agree, unfortunately... Perhaps this is some motivation to get the fs permission table into the mainline kernel for 2.6.17. It's the 'cmdfilter' branch of the git block repo. Then we could finally get rid of this ugly command table.

Signature · 1 line
Jens Axboe
#3 lore raw
In reply to James Bottomley
Quoted 14 lines · James Bottomley
Quoted 5 lines · On Wed, 2006-03-08 at 00:14 -0800, [email protected] wrote:

From: Thomas Maguin <[email protected]>

This patch allows normal users to eectute some Plextor drives commands:

Quoted 7 lines

- Hide CD-R
- SingleSession
- SpeedRead
- PowerRec
- VariRec
- GigaRec

Quoted 4 lines

This one just isn't safe. We can't add vendor specific commands to the permissions table because they mean different things to different vendors ... get mode on one could be halt and catch fire on another, so the whole concept of safety via command verification is lost.

Thanks for NAKing this one again, James. I'm a bit disappointed akpm picked it up given that I explained how unsafe it was when it was posted:
http://marc.theaimsgroup.com/?l=linux-scsi&m=113976322621230&w=2

#4 lore raw
Quoted 23 lines · Matthew Wilcox
Quoted 15 lines · James Bottomley
Quoted 5 lines · On Wed, 2006-03-08 at 00:14 -0800, [email protected] wrote:

From: Thomas Maguin <[email protected]>

This patch allows normal users to eectute some Plextor drives commands:

Quoted 7 lines

- Hide CD-R
- SingleSession
- SpeedRead
- PowerRec
- VariRec
- GigaRec

Quoted 4 lines

This one just isn't safe. We can't add vendor specific commands to the permissions table because they mean different things to different vendors ... get mode on one could be halt and catch fire on another, so the whole concept of safety via command verification is lost.

Quoted 3 lines

Thanks for NAKing this one again, James. I'm a bit disappointed akpm picked it up given that I explained how unsafe it was when it was posted:
http://marc.theaimsgroup.com/?l=linux-scsi&m=113976322621230&w=2

I NAK'd it as well, for obvious reasons...

Jeff