Bug 325331 - Permission problem on /etc/hotplug/usb/libhidups
Permission problem on /etc/hotplug/usb/libhidups
Status: CLOSED CURRENTRELEASE
Product: Fedora EPEL
Classification: Fedora
Component: nut (Show other bugs)
el4
All Linux
low Severity medium
: ---
: ---
Assigned To: Tomas Smetana
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-09 14:18 EDT by Shad L. Lords
Modified: 2007-10-10 05:01 EDT (History)
0 users

See Also:
Fixed In Version: 2.2.0-3.3.el4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-10-10 05:01:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Shad L. Lords 2007-10-09 14:18:47 EDT
Description of problem:

Permissions on /etc/hotplug/usb/libhidups need to allow execute so that
permissions on usbups devices are set correctly.

Version-Release number of selected component (if applicable):
nut-2.2.0-3.2.el4

How reproducible:
Always

Steps to Reproduce:
1. install nut-2.2.0-3.2.el4
2. configure usb ups
3. driver fails to load
  
Actual results:

Checking device (051D/0002) (002/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 1 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
failed to claim USB device, trying 0 more time(s)...
detaching kernel driver from USB device...
failed to detach kernel driver from USB device...
trying again to claim USB device...
Unable to get HID descriptor (error sending control message: Operation not
permitted)
HID descriptor retrieved (Reportlen = 840)
Unable to get Report descriptor (-1): Operation not permitted

Expected results:

Checking device (051D/0002) (002/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: APC
- Product: Back-UPS ES 500 FW:824.B1.D USB FW:B1
- Serial Number: BB0547014849
- Bus: 002
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 840)
Report descriptor retrieved (Reportlen = 840)
Found HID device
Report Descriptor size = 840
Detected a UPS: APC/Back-UPS ES 500 FW:824.B1.D USB FW:B1
Using subdriver: APC/CyberPower HID 0.9

Additional info:

Changing the hotplug/usb section of the spec file to the following fixes the issue:

%attr(755,root,root) %{_sysconfdir}/hotplug/usb/libhidups
%attr(644,root,root) %{_sysconfdir}/hotplug/usb/libhid.usermap
Comment 1 Tomas Smetana 2007-10-10 05:01:01 EDT
Thank you for reporting.  The new release should have the permissions fixed.

Note You need to log in before you can comment on or make changes to this bug.