Bug 325331 - Permission problem on /etc/hotplug/usb/libhidups
Summary: Permission problem on /etc/hotplug/usb/libhidups
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nut
Version: el4
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-09 18:18 UTC by Shad L. Lords
Modified: 2007-10-10 09:01 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2007-10-10 09:01:01 UTC


Attachments (Terms of Use)

Description Shad L. Lords 2007-10-09 18:18:47 UTC
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 09:01:01 UTC
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.