https://bugzilla.novell.com/show_bug.cgi?id=438867
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=438867#c38
Johannes Meixner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #38 from Johannes Meixner 2008-12-03 07:40:52 MST ---
The new packages work on my openSUSE 11.0 workstation
but not on a openSUSE 11.1 RC2 test system:
udi = '/org/freedesktop/Hal/devices/usb_device_4a9_220e_noserial'
info.capabilities = {'scanner'} (string list)
info.linux.driver = 'usb' (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_0' (string)
info.product = 'CanoScan N1240U/LiDE 30' (string)
info.subsystem = 'usb_device' (string)
info.udi =
'/org/freedesktop/Hal/devices/usb_device_4a9_220e_noserial' (string)
info.vendor = 'Canon, Inc.' (string)
linux.device_file = '/dev/bus/usb/001/005' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2' (string)
usb_device.bus_number = 1 (0x1) (int)
usb_device.can_wake_up = true (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 255 (0xff) (int)
usb_device.device_protocol = 255 (0xff) (int)
usb_device.device_revision_bcd = 256 (0x100) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.linux.device_number = 5 (0x5) (int)
usb_device.linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-2' (string)
usb_device.max_power = 500 (0x1f4) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.product = 'CanoScan N1240U/LiDE 30' (string)
usb_device.product_id = 8718 (0x220e) (int)
usb_device.speed = 12.0 (12) (double)
usb_device.vendor = 'Canon, Inc.' (string)
usb_device.vendor_id = 1193 (0x4a9) (int)
usb_device.version = 1.1 (1.1) (double)
blackbird:~ # hal-find-by-property --key access_control.type --string scanner
blackbird:~ # hal-find-by-capability --capability scanner
/org/freedesktop/Hal/devices/usb_device_4a9_220e_noserial
I.e. via the "--key access_control.type" it cannot find it
because there is no access_control.type for this UDI.
blackbird:~ # find /etc/hal/ | xargs grep 'access_control\.type' | grep scanner
blackbird:~ # find /usr/share/hal/ | xargs grep 'access_control\.type' | grep
scanner
/usr/share/hal/fdi/policy/10osvendor/20-acl-management.fdi: <merge
key="access_control.type" type="string">scanner</merge>
/usr/share/hal/fdi/policy/10osvendor/20-acl-management.fdi: <merge
key="access_control.type" type="string">scanner</merge>
/usr/share/hal/fdi/policy/10osvendor/20-acl-management.fdi contains
---------------------------------------------------------------------------
<match key="info.capabilities" contains="usbraw">
<match key="info.capabilities" sibling_contains="scanner">
<append key="info.capabilities" type="strlist">access_control</append>
---------------------------------------------------------------------------
But as far as I see <match key="info.capabilities" contains="usbraw">
is not true for scanners because it is just
info.capabilities = {'scanner'} (string list)
blackbird:~ # rpm -qf
/usr/share/hal/fdi/policy/10osvendor/20-acl-management.fdi
hal-0.5.12-10.1
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.