Bug 432602

Summary: udev shouldn't change owner/group on SCSI generic devices for scanners
Product: [Fedora] Fedora Reporter: Nils Philippsen <nphilipp>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-20 13:12:15 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nils Philippsen 2008-02-13 04:37:34 EST
Description of problem:
sane-backends will contain HAL policy which sets ACLs on scanner devices.
Currently udev contains rules which change ownership of SCSI scanner generic
devices to root.disk which seems superfluous to me.

Version-Release number of selected component (if applicable):
udev-118-1.fc8

How reproducible:
Reproducible

Steps to Reproduce:
1. Attach SCSI scanner to system, switch it on
2. 'echo "scsi add-single-device ...." > /proc/scsi/scsi
  
Actual results:
root@wombat:~> ls -l /dev/sg3
crw-rw----+ 1 root disk 21, 3 2008-02-13 10:25 /dev/sg3

Expected results:
root@wombat:~> ls -l /dev/sg3
crw-rw----+ 1 root root 21, 3 2008-02-13 10:25 /dev/sg3

Additional info:
The rules in question are:

40-redhat.rules:8:ACTION=="add", KERNEL=="sg[0-9]*", BUS=="scsi",
ATTRS{type}=="[36]", SYMLINK+="scanner scanner-%k", MODE="0660"

50-udev-default.rules:70:KERNEL=="sg[0-9]*",            GROUP="disk", MODE="0640"

Perhaps the rules should be structured so the latter one (in 
50-udev-default.rules) takes effect only for non-scanner devices.
Comment 1 Harald Hoyer 2008-02-13 04:53:56 EST
yep
Comment 2 Harald Hoyer 2008-02-20 13:12:15 EST
udev-118-5.fc9