On Tue, Apr 07, 2009 at 02:51:33AM +0200, Marco d'Itri wrote: > Package: eject > Version: 2.1.5+deb1+cvs20081104-5 > Severity: normal > > Otherwise modern kernels will generate a change uevent which will make > udev access the device again and maybe even remount it. > > I do not know about the other functions, but the CDROMEJECT ioctl works > fine with a read only fd.
IIRC the O_RDWR was added for the benefit of the SCSI ioctl which might not work otherwise. With some code reordering it should possible to limit to that. Gruesse, -- Frank Lichtenheld <dj...@debian.org> www: http://www.djpig.de/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org