Bug 432602 - udev shouldn't change owner/group on SCSI generic devices for scanners
udev shouldn't change owner/group on SCSI generic devices for scanners
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-02-13 04:37 EST by Nils Philippsen
Modified: 2008-02-20 13:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-20 13:12:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
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):

How 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
Comment 2 Harald Hoyer 2008-02-20 13:12:15 EST

Note You need to log in before you can comment on or make changes to this bug.