Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135229

Summary: Patch to make eject respect device permissions
Product: Gentoo Linux Reporter: David A. Corby <davec-gentoo>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eject-2.1.0-rdwr.patch
Updated ebuild to include the patch.

Description David A. Corby 2006-06-01 21:59:05 UTC
As it is, eject opens device files read-only. Only root can bypass this and eject devices anyway. This patch makes eject open the device read-write, so that normal users can eject the device as long as they have write permission to it. I did not come up with this patch myself, just integrated it into Gentoo, I originally found it here:

http://www.ussg.iu.edu/hypermail/linux/kernel/0512.2/0932.html

Updated ebuild and patch are attached.
Comment 1 David A. Corby 2006-06-01 22:00:58 UTC
Created attachment 88157 [details, diff]
eject-2.1.0-rdwr.patch

This patch changes eject to open devices rdwr if possible, allowing normal users to call eject.
Comment 2 David A. Corby 2006-06-01 22:01:50 UTC
Created attachment 88158 [details]
Updated ebuild to include the patch.
Comment 3 SpanKY gentoo-dev 2006-06-11 07:42:26 UTC

*** This bug has been marked as a duplicate of 116731 ***