Mailinglist Archive: opensuse-bugs (12871 mails)

< Previous Next >
[Bug 462639] access permissions for scsi scanners missing
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sat, 10 Jan 2009 14:36:07 -0700 (MST)
  • Message-id: <20090110213607.6EF8DCC7CD@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=462639

User dieter.jurzitza@xxxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=462639#c16





--- Comment #16 from Dieter Jurzitza <dieter.jurzitza@xxxxxxxxxxx> 2009-01-10
14:36:04 MST ---
Hi folks,
the people from sane-devel requested that sane-desc should create the
hal-information from the *.desc files, too. This was not the case with my last
patch, therefore I implemented the required modifications and I have sent a
corresponding patch to sane-devel and wait for a feedback.

As suggested the generic scanner rule:

<!-- Generic SCSI Scanner device -->
<match key="@info.parent:scsi.type" string="scanner">
<append key="info.capabilities" type="strlist">scanner</append>
</match>

should be integrated somewhere in the hal-info package. However, everything
that needs to happen because the scanner promotes itself as a processor will be
provided by sane-desc.

So, the file 70-scanner.fdi would look as follows:


<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<!-- SCSI-SUBSYSTEM -->
<match key="info.category" string="scsi_generic">
<!-- Some SCSI Scanners announce themselves "processor" -->
<match key="@info.parent:scsi.type" string="processor">
<match key="@info.parent:scsi.vendor" string="EPSON">
<!-- SCSI Scanner "Epson Perfection 1200S" -->
<match key="@info.parent:scsi.model" string="Perfection1200">
<append key="info.capabilities" type="strlist">scanner</append>
</match>
</match>
<match key="@info.parent:scsi.vendor" string="HP">
<!-- SCSI Scanner "Hewlett-Packard ScanJet 6200C" -->
<match key="@info.parent:scsi.model" string="C6270A">
<append key="info.capabilities" type="strlist">scanner</append>
</match>
</match>
<match key="@info.parent:scsi.vendor" string="HP">
<!-- SCSI Scanner "Hewlett-Packard ScanJet 6300C" -->
<match key="@info.parent:scsi.model" string="C7670A">
<append key="info.capabilities" type="strlist">scanner</append>
</match>
</match>
</match>
</match>
<!-- USB-SUBSYSTEM -->
<match key="info.subsystem" string="usb">
<!-- Hewlett-Packard Any all-in-one device -->
<match key="usb.vendor_id" int="0x03f0">
<match key="usb.product_id" int="0x0000">
<append key="info.capabilities" type="strlist">scanner</append>
</match>
</match>

The list of scsi-scanners promoting themselves as "processor" will grow as the
number grows that I know. The only modification neccessary will be the addition
of appropriate strings within the .desc files of sane-backend.

This being said I will supply a patch for sane-backends too, as soon as it
becomes clear whether or not the modified version of sane-desc.c is acceptable
and what modifications are requrired in addition to what I've done so far.

Take care



Dieter Jurzitza

P.S. will look again into #9 within the next few days.

--
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.

< Previous Next >