
# cd-rom

# user/group and persmission for the cd and the corespondig generic device
REGISTER ^(ide|scsi)/host[0-9]+/bus[0-9]+/target[0-9]+/lun[0-9]+/(cd|generic) PERMISSIONS root.users 0664

# handle the historic /dev/cdrom device always pointing to the first CD-ROM
REGISTER    ^(cdroms/cdrom0)$ 	EXECUTE		ln -s /dev/\1 /dev/cdrom
REGISTER    ^(cdroms/cdrom0)$	EXECUTE		ln -s /dev/\1 /dev/dvd
UNREGISTER  ^cdroms/cdrom0$	EXECUTE		rm -f /dev/cdrom /dev/dvd

