Skip to contentSkip to conversation

udev/aacraid interaction - should aacraid set 'removable'?

DISCUSSION dann frazier 1 participant 1 message Jan 3, 2007 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20070103080325.GN13154@colo

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

(lkml readers: this concerns a security issue reported to debian by a user of udev/aacraid. udev gives the aacraid devices the floppy group because it reports block devices as 'removable'. See
http://bugs.debian.org/404927 for the entire thread).

Quoted 7 lines · Marco d'Itri
Quoted 4 lines · dann frazier

Can you elaborate on what you believe the kernel is doing
incorrectly? My first guess would be the setting of the removable flag, but aacraid claims to be setting this to prevent partition table caching - do you believe that to be an incorrect usage?

Yes, this looks like an abuse of the interface to me.

Ok, let's ask lkml

Quoted 7 lines
Quoted 4 lines

It seems like there is precedence for workarounds for older kernels in permissions.rules, so would it be appropriate to add an override of the default floppy rule for aacraid devices for compatability even if this is a kernel bug?

There are workarounds for bugs which are going to be fixed, but looks like this is going to stay forever...
Are there other drivers in this situation?

I didn't turn up any otherwise when I was grepping yesterday, but my search terms may have been too naive. I also checked a machine I had w/ cciss - it did not have the removable flag set.

I found a message from Mark Salyzyn from last year that suggested this was more pervasive:
http://www.ussg.iu.edu/hypermail/linux/kernel/0602.2/1231.html
Mark: Can you identify some of these other drivers?

Signature · 1 line
dann frazier