On Sat, Apr 11, 2009 at 01:34:59PM +0200, Marco d'Itri wrote: > On Apr 11, Frank Lichtenheld <dj...@debian.org> wrote: > > > 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. > I recommend that you verify if this is still true, because I think > that having side effects only in some cases could be quite confusing...
With my USB stick I see the following behaviour: As normal user (with write access to the device file): CDROM eject RDONLY works CDROM eject RDWR works SCSI eject RDONLY doesn't work SCSI eject RDWR works As root: same but SCSI eject RDONLY also works So I guess at least for the SCSI eject we still need RDWR in some cases (I suspect the normal user is missing some capability there) 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