[Bug 938659] New: Indication "Access error" from "libusb_open" during printer device detection
http://bugzilla.suse.com/show_bug.cgi?id=938659 Bug ID: 938659 Summary: Indication "Access error" from "libusb_open" during printer device detection Classification: openSUSE Product: openSUSE Factory Version: 201505* Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Printing Assignee: jsmeix@suse.com Reporter: Markus.Elfring@web.de QA Contact: jsmeix@suse.com Found By: --- Blocker: --- Now I find that I gathered enough technical details for such a bug report which is a successor for my clarification request "YaST connection assistant does not show a working printer on USB port.". https://forums.opensuse.org/showthread.php/508345-YaST-connection-assistant-... I have installed the software "CUPS 2.0.3-180.1" a moment ago. http://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/ The command "/usr/sbin/cupsd -l" is running since this installation succeeded. I would like to clarify the following display again while my idle USB printer is connected and should be usable. Sonne:~ # /usr/sbin/lpinfo -v network lpd network https network socket network ipps network http network smb network ipp direct hp serial serial:/dev/ttyS0?baud=115200 Now I wonder that the file "/var/log/cups/error_log" was not written despite of the setting "debug2" for the parameter "LogLevel" in the file "/etc/cups/cupsd.conf". So I stop this process and restart the print server. Sonne:~ # kill 5144 && /usr/sbin/cupsd Then another try for the desired device detection … Sonne:~ # /usr/sbin/lpinfo -v network lpd direct hp network smb serial serial:/dev/ttyS0?baud=115200 network https network socket network ipps network http network ipp The file "/var/log/cups/error_log" was written this time. It contains the message "[CGI] Failed to open device, code: -3". I determined the function "open_device" from the source file "usb-libusb.c" of the affected CUPS backend as the origin for this information. The shown return value from a call of the function "libusb_open" corresponds to the preprocessor symbol "LIBUSB_ERROR_ACCESS". https://github.com/libusb/libusb/blob/c141457debff6156b83786eb69b46d873634e5... Would you like to help me further with the determination and setting of appropriate permissions for a working print system configuration? Sonne:~ # /usr/lib/cups/backend/usb DEBUG: Loading USB quirks from "/usr/share/cups/usb". DEBUG: Loaded 114 quirks. DEBUG: list_devices DEBUG: libusb_get_device_list=5 DEBUG2: Printer found with device ID: ID:ECOSYS P6021cdn;MFG:Kyocera;CMD:PCLXL,PostScript Emulation,PCL5C,PJL;MDL:ECOSYS P6021cdn;CLS:PRINTER;DES:Kyocera ECOSYS P6021cdn;CID:KY_XPS_ColorA4FID; Device URI: usb://Kyocera/ECOSYS%20P6021cdn?serial=LW44818568 direct usb://Kyocera/ECOSYS%20P6021cdn?serial=LW44818568 "Kyocera ECOSYS P6021cdn" "Kyocera ECOSYS P6021cdn" "ID:ECOSYS P6021cdn;MFG:Kyocera;CMD:PCLXL,PostScript Emulation,PCL5C,PJL;MDL:ECOSYS P6021cdn;CLS:PRINTER;DES:Kyocera ECOSYS P6021cdn;CID:KY_XPS_ColorA4FID;" "" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c1
--- Comment #1 from Markus Elfring
Would you like to help me further with the determination and setting of appropriate permissions for a working print system configuration?
Did I expect too much that the YaST printer setup will keep or adjust the members of the system group "lp" appropriately after another printer connection so that device discovery problems can be better avoided? https://www.cups.org/pipermail/cups/2014-September/026459.html -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
Martin Pluskal
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c2
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c3
Markus Elfring
For example on my Tumbleweed system I get:
elfring@Sonne:~> lsusb --verbose -s 3 Bus 001 Device 003: ID 0482:063e Kyocera Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0482 Kyocera Corp. idProduct 0x063e bcdDevice 0.00 iManufacturer 1 Kyocera iProduct 2 Kyocera ECOSYS P6021cdn iSerial 3 LW44818568 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 2 Bidirectional iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0001 Self Powered
what shows "ls -l /dev/bus/usb/
/ " for your USB printer device on your system?
crw-rw---- 1 root users 189, 2 Jul 20 13:55 /dev/bus/usb/001/003
In general when something with udev does not work as it should I cannot help because I am not at all a sufficient udev expert.
Who can and would like to help more around configuration challenges from this software area? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c4
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c5
Markus Elfring
With "crw-rw---- root users" it does no longer work
I have rebooted this Tumbleweed system once more in the meantime. Now the numbers are looking like the following. elfring@Sonne:~> lsusb -s 2 Bus 001 Device 002: ID 0482:063e Kyocera Corp.
please report if it works for you after manually as root
Sonne:~ # target=/dev/bus/usb/001/002 && ll $target && chown root:lp $target && chmod 0664 $target && lpinfo -v | grep usb crw-rw---- 1 root users 189, 1 Jul 20 16:01 /dev/bus/usb/001/002 direct usb://Kyocera/ECOSYS%20P6021cdn?serial=LW44818568 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c6
--- Comment #6 from Markus Elfring
I think - but I am not at all a udev expert - that in /usr/lib/udev/rules.d/50-udev-default.rules
Does a configuration file like "/usr/lib/udev/rules.d/70-printers.rules" need eventually another look together with the software package "udev-configure-printer 1.5.7-2.1"? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=938659
Dr. Werner Fink
From my point of view it is more basic functionality
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c7
--- Comment #7 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c8
--- Comment #8 from Markus Elfring
From my point of view it is more basic functionality that does not work for your particular USB printer.
Do I need to check any more details from my system configuration if I look at the following information? Sonne:~ # lsusb -s 3 && udevadm info -a /dev/bus/usb/001/003 | grep Class Bus 001 Device 003: ID 0482:063e Kyocera Corp. ATTR{bDeviceSubClass}=="00" ATTR{bDeviceClass}=="00" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceClass}=="09" Where should the item "ATTR{bInterfaceClass}" get set usually? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c9
--- Comment #9 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c10
--- Comment #10 from Markus Elfring
From my point of view it is more basic functionality that does not work for your particular USB printer.
I have connected the model "Stylus C84" with my Tumbleweed system for another test. elfring@Sonne:~> lsusb -s 2 && target=/dev/bus/usb/003/002 && ls -l $target && udevadm info -a $target | grep Class Bus 003 Device 002: ID 04b8:0005 Seiko Epson Corp. Printer crw-rw-r-- 1 root lp 189, 257 22. Jul 08:07 /dev/bus/usb/003/002 ATTR{bDeviceSubClass}=="00" ATTR{bDeviceClass}=="00" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceClass}=="09" Does an information like "ATTR{bInterfaceClass}" get eventually displayed on your development or production systems? -- You are receiving this mail because: You are on the CC list for the bug.
From my point of view the questions are now: What is the difference between both USB printer models
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c11
--- Comment #11 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c12
--- Comment #12 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c13
--- Comment #13 from Markus Elfring
What is the difference between both USB printer models that result different group and permissions for the device node and/or what has changed in udev/systemd why for some USB printers the device node is no longer created with "rw-rw-r-- root lp" as it had worked all the time in the past for all USB printers.
Is the udev software responsible responsible alone for the desired setting of appropriate access rights? How many components can influence corresponding configuration decisions? Do additional data sources need another look for useful updates? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c14
--- Comment #14 from Markus Elfring
For me this looks like the printer with the wrong permissions and owner ship is not part of something like a data base (e.g. /usr/share/usb.ids) and/or is missing hint in its vendor description that it *is* a printer.
Is there any software component which depends still on the repetition of a device type in the product name? How many device attributes should be usually checked for ordinary system operation? Do you know any similar configuration challenges from other device domains? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c15
--- Comment #15 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c16
--- Comment #16 from Markus Elfring
Please show the result of
udevadm info -x /dev/bus/usb/001/003 | grep ID_USB_INTERFACES
E: ID_USB_INTERFACES=:070102: -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c17
--- Comment #17 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c18
Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c19
Markus Elfring
in /usr/lib/udev/rules.d/50-udev-default.rules to let become the printer a printer with group "lp"
How do you think about to add a parameter like "RUN{program …}" there for further problem analysis so that a special command would test the expected setting of useful device permissions and log failures in a way that would be noticed earlier? (In reply to Dr. Werner Fink from comment #18)
Is this Kyrocera a so called 3in1 or 4in1 model
No. - You can look at a corresponding detailed device description from the vendor for example. http://www.kyoceradocumentsolutions.co.uk/index/products/product/ecosysp6021...
and/or has aybe an own card bridge to read memory cards?
I am unsure if this detail might become relevant. The discussed model provides an USB socket at the front of its case. I do not want to plug an external storage device in at the moment. ;-)
If you switch off your printer and then run in an terminal the command
Sonne:~ # lsusb -s 4 Bus 001 Device 004: ID 0482:063e Kyocera Corp.
udevadm monitor --env --kernel udev
to switch on again your printer, what does you see?
monitor will print the received events for: KERNEL - the kernel uevent KERNEL[13287.152254] add /devices/pci0000:00/0000:00:02.1/usb1/1-2 (usb) ACTION=add BUSNUM=001 DEVNAME=/dev/bus/usb/001/004 DEVNUM=004 DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-2 DEVTYPE=usb_device MAJOR=189 MINOR=3 PRODUCT=482/63e/0 SEQNUM=2642 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[13287.153726] add /devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0 DEVTYPE=usb_interface INTERFACE=7/1/2 MODALIAS=usb:v0482p063Ed0000dc00dsc00dp00ic07isc01ip02in00 PRODUCT=482/63e/0 SEQNUM=2643 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[13287.153806] add /class/usbmisc (class) ACTION=add DEVPATH=/class/usbmisc SEQNUM=2644 SUBSYSTEM=class KERNEL[13287.153854] add /devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/usbmisc/lp0 (usbmisc) ACTION=add DEVNAME=/dev/usb/lp0 DEVPATH=/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/usbmisc/lp0 MAJOR=180 MINOR=0 SEQNUM=2645 SUBSYSTEM=usbmisc -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c20
--- Comment #20 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c21
--- Comment #21 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c22
--- Comment #22 from Markus Elfring
this seems that
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
will not be matched by
I wonder how this could happen with the following information. Sonne:~ # udevadm info -x /dev/bus/usb/001/004 | egrep 'SUBSYSTEM|DEVTYPE|ID_USB_INTERFACES' E: DEVTYPE=usb_device E: ID_USB_INTERFACES=:070102: E: SUBSYSTEM=usb
to see if this may match
I am going to experiment with corresponding udev rule additions a bit later. How often do you need to fiddle with the affected rule collection in special ways on your test and development systems? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c23
--- Comment #23 from Dr. Werner Fink
How often do you need to fiddle with the affected rule collection in special ways on your test and development systems?
... normally this does not happen. Only for brand new hardware thishad happen a long time ago. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c24
--- Comment #24 from Markus Elfring
to see if this may match
Do you know if there is a special software test module available which I could configure like it is usual with real printers? How are the chances to reproduce the issue I stumbled on without switching external hardware on? Can the affected file permission settings be also checked by a kind of simulation for the desired device addition and activation? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c25
--- Comment #25 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c29
--- Comment #29 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c30
Markus Elfring
please also attach an appropriate part of a journalctl output
I would prefer an other approach to drill down into involved details. I have added the following specification to the discussed addition actions in the configuration files "/usr/lib/udev/rules.d/50-udev-default.rules" and "/usr/lib/udev/rules.d/70-printers.rules". , RUN{program}+="/bin/bash -c 'my_log=/tmp/log938659.txt && /usr/bin/date -Ins
$my_log && echo configure-%p >> $my_log && /usr/bin/ls -l /dev/bus/usb/$env{BUSNUM}/$env{DEVNUM} >> $my_log'"
The specified log file contains information like the following after I restarted "systemd-udevd.service" and switched my printer on again. 2015-07-23T16:37:59,712732516+0200 lp-/devices/pci0000:00/0000:00:02.1/usb1/1-2 crw-rw---- 1 root users 189, 4 Jul 23 16:37 /dev/bus/usb/001/005 2015-07-23T16:37:59,729717592+0200 configure-/devices/pci0000:00/0000:00:02.1/usb1/1-2 crw-rw---- 1 root users 189, 4 Jul 23 16:37 /dev/bus/usb/001/005 (In reply to Dr. Werner Fink from comment #29)
ENV{ID_USB_INTERFACES}=="*:0701??:*", MODE:="0664", GROUP:="lp"
that means with colon a later override will be avoided
The specified log file contains information like the following after another restart of udevd and my printer. 2015-07-23T16:45:52,895724921+0200 lp-/devices/pci0000:00/0000:00:02.1/usb1/1-2 crw-rw-r-- 1 root lp 189, 5 Jul 23 16:45 /dev/bus/usb/001/006 2015-07-23T16:45:52,907780826+0200 configure-/devices/pci0000:00/0000:00:02.1/usb1/1-2 crw-rw-r-- 1 root lp 189, 5 Jul 23 16:45 /dev/bus/usb/001/006 Does such a debug display mean that the setting of device file permissions by the udev assignment key "GROUP" alone is fragile on my Tumbleweed system in the shown constellation so far? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c31
--- Comment #31 from Markus Elfring
I would prefer an other approach to drill down into involved details.
Does the implementation of the function "udev_event_execute_rules" need another source code review for potential improvements around changes from the commit 912541b0246ef315d4d851237483b98c9dd3f992 on 2012-01-10? https://github.com/systemd/systemd/blob/master/src/udev/udev-event.c#L894 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c32
--- Comment #32 from Markus Elfring
I've no clue if there is soemthing which can simulate this printer.
How do you think about to reuse any virtual machine or container for a corresponding problem analysis? How are the chances to reproduce the issue I stumbled on by fiddling with commands around a function like "virNodeDeviceCreateXML"? https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceCreateXML https://libvirt.org/sources/virshcmdref/html/chap-Virsh_Command_Reference-Co... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c33
--- Comment #33 from Markus Elfring
I would prefer an other approach to drill down into involved details.
Would you like to help me to get a core dump from a child process of a program variant? Do you find the request "Clarification around a segmentation fault from an udevd worker" interesting for a further problem analysis? http://lists.freedesktop.org/archives/systemd-devel/2015-July/033698.html http://article.gmane.org/gmane.comp.sysutils.systemd.devel/33608 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c34
--- Comment #34 from Markus Elfring
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c35
--- Comment #35 from Markus Elfring
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c36
--- Comment #36 from Markus Elfring
I would prefer an other approach to drill down into involved details.
Are any consequences from the file "/usr/lib/udev/rules.d/51-android.rules" interesting for further detail checks? Example: … # Kyocera SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0660", GROUP="users" … Does a varying execution order of background processes matter here for the involved activation of desired settings? Is only the assignment specification 'key:="value"' safe then in this use case? -- You are receiving this mail because: You are on the CC list for the bug.
From my point of view (i.e. from a printing system point of view)
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c37
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c38
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c39
Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c40
--- Comment #40 from Markus Elfring
In contrast
I found the file comparison by a tool like KDiff3 helpful in my case.
The rule in your comment#36 applies to any Kyocera devices and because 51-android.rules is alpabetically after 50-udev-default.rules the 51-android.rules are applied after the ones in 50-udev-default.rules.
I needed a while to become aware of this configuration detail.
There is no bug in udev.
There are still some open issues also in this software. But I can acknowledge so far that the shown rule evaluation works completely as it was designed.
It works exactly as the udev rules on your Tumbleweed system specify.
Yes.
The root cause is in the package that provides 51-android.rules because it contains a rule that applies to any Kyocera devices. I cannot decide if that rule is right or wrong.
Did I stumble on a target conflict for the determination of appropriate device permissions?
At least for Kyocera USB printers it seems to be wrong because it makes normal usage by the printing system (via user lp group lp) impossible - but I cannot decide if that it intended.
Will there any more fine-tuning be needed for the affected settings?
# rpm -qf /usr/lib/udev/rules.d/51-android.rules
android-tools-4.2.2_r1-7.2.x86_64
# rpm -qi
Install Date: Tue Mar 3 18:04:33 2015 Build Date : Sat Jan 31 00:35:37 2015 Build Host : build08 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c41
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c42
Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c43
Dean Martin
The RPM changelog of android-tools-5.1.1_r8-1.1.i586.rpm shows: ----------------------------------------------------------------------- * Tue Jun 23 2015 crrodriguez@opensuse.org - 51-android.rules: Use TAG+="uaccess" instead of using group/mode access control. -----------------------------------------------------------------------
Accordingy it seems crrodriguez@opensuse.org is the more appropriate assignee for issues with 51-android.rules
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c44
--- Comment #44 from Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c45
--- Comment #45 from Dmitry Roshchin
As far as I see those rules are in two ways wrong:
I'm agree. But unfortunately I'm not specialist in udev. If someone can suggest proper solution, I'll add it to package. Or we can temporary remove Kyocera from 51-android.rules. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c46
--- Comment #46 from Markus Elfring
IMHO it would make sense to adjust the rule in 50-udev-default.rules so that overrides from later rules are prevented as Fink Werner already suggested
Do any printing devices need any more special permissions here? When would you reuse another rule file for a model collection? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c47
--- Comment #47 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c48
--- Comment #48 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c49
--- Comment #49 from Markus Elfring
I think the real solution would be more specific conditions in 51-android.rules so that those rules only apply for the specific devices for what android-tools is meant to be used.
How do you think about to introduce specific checks for corresponding environment variables? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c50
--- Comment #50 from Cristian Rodríguez
I think the real solution would be more specific conditions in 51-android.rules so that those rules only apply for the specific devices for what android-tools is meant to be used.
Yes, the problem is on how this rules were collected or generated..we need to correct that. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c51
--- Comment #51 from Markus Elfring
Yes, the problem is on how this rules were collected or generated..
Was the discussed rule file automatically generated by any script then?
we need to correct that.
I am curious on how the improved version will look like. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c52
--- Comment #52 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c53
--- Comment #53 from Cristian Rodríguez
I am curious on how the improved version will look like.
It would have to be generated from usb_vendors.c or whatever replaces it in current adb releases. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c54
--- Comment #54 from Markus Elfring
In this particular case the actual problem is that later rules falsely override default rules (because those later rules are not "for special cases").
Are there any sanity checks available against more inappropriate settings from the rule collection? (In reply to Cristian Rodríguez from comment #53)
It would have to be generated from usb_vendors.c or whatever replaces it in current adb releases.
Would you like to refer to any content management system for these source files? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c55
--- Comment #55 from Markus Elfring
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c56
--- Comment #56 from Markus Elfring
In this particular case the actual problem is that later rules falsely override default rules (because those later rules are not "for special cases").
I could try to achieve better settings also by an additional udev rule file, couldn't I? Further ideas: * Have you been looking for solutions around similar system configuration challenges already? * Do we need the combination of the device access permissions from the groups "lp" and "plugdev" in the discussed use case? * Which is the recommended way to extend access control lists by udev interfaces so that functionality like "printing", "picture scanning" and "Android software development/debugging" can be used together? (Are corresponding device interfaces cleanly separated?) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c63
--- Comment #63 from Johannes Meixner
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c64
--- Comment #64 from Jan Engelhardt
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c65
--- Comment #65 from Dmitry Roshchin
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c66
--- Comment #66 from Dmitry Roshchin
http://bugzilla.suse.com/show_bug.cgi?id=938659
http://bugzilla.suse.com/show_bug.cgi?id=938659#c67
--- Comment #67 from Dmitry Roshchin
participants (1)
-
bugzilla_noreply@novell.com