On Thu, 23 Oct 2008 14:39:28 -0400 Bill Davidsen davidsen@tmr.com wrote:
I think this is neat, and useful, but I kind of want ignore back a level, opening the device enough to look for a volume label is probably enough to mess up the application if it happens at the wrong time.
Yea - volume.label is merely one of gazillions of things you can test. No doubt it would also be possible to simply ignore device /dev/sr0 as well (or something like that). Look in /bin or /usr/bin for programs names *hal* - I think there is one out there which will give you a listing of all the hal device attributes and such, and I believe any of them can be tested for in the policy files (but I am by no means any kind of expert - there is a hal mailing list out there where I got help to enable me to construct this specific case).