Bug 893003

Summary: sane - regular user has not permitted scan operations
Product: Red Hat Enterprise Linux 6 Reporter: Iveta Wiedermann <isenfeld>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: fcdanilo, nphilipp, psklenar, udev-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-13 14:15:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Iveta Wiedermann 2013-01-08 12:47:14 UTC
Description of problem:
When trying to 'scanimage -L' as nonroot user with usb scanner plugged in, no scanner is found and log says 'Operation not permitted'

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04b3:4485 IBM Corp. Serial Converter
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 001 Device 005: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 001 Device 006: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 007: ID 413c:2010 Dell Computer Corp. Keyboard
Bus 003 Device 004: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 001 Device 010: ID 03f0:3812 Hewlett-Packard 

I tried like a nonroot 
# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


# getfacl /dev/bus/usb/001/010 
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/010
# owner: root
# group: root
user::rw-
group::rw-
group:lp:rw-
mask::rw-
other::r--


then I set :
# chmod a+rwx /dev/bus/usb/001/010 

and again like a user: scanimage -L
device `hpaio:/usb/Officejet_Pro_8500_A909a?serial=CN08H5R07S' is a Hewlett-Packard Officejet_Pro_8500_A909a all-in-one


Version-Release number of selected component (if applicable):
udev-147-2.42.el6
cups-1.4.2-48.el6_3.3
libusb1-1.0.9-0.6.rc1.el6
sane-backends-1.0.21-3.el6

How reproducible:
100%

Steps to Reproduce:
1. Plug some usb scanner
2. Run scanimage -L to list available scanners
3. See /var/log/messages
  
Actual results:
No scanner is found and 'Operation not permitted' can be found in log

Expected results:
Scanner is found and no permission problems are mentioned in the log

Additional info:

Log:

Jan  8 10:50:17 localhost python: io/hpmud/dot4.c 121: unexpected DOT4CreditRequest: cmd=4, hid=4, pid=4, maxcredit=65535
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 342: device_cleanup: device uri=hp:/usb/Officejet_Pro_8500_A909a?serial=CN08H5R07S
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 354: device_cleanup: close device dd=1...
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 356: device_cleanup: done closing device dd=1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1

Comment 4 Tim Waugh 2013-05-13 14:15:37 UTC

*** This bug has been marked as a duplicate of bug 905143 ***