Bug 432602 - udev shouldn't change owner/group on SCSI generic devices for scanners
Summary: udev shouldn't change owner/group on SCSI generic devices for scanners
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: udev   
(Show other bugs)
Version: 8
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-13 09:37 UTC by Nils Philippsen
Modified: 2008-02-20 18:12 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Nils Philippsen 2008-02-13 09:37:34 UTC
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 09:53:56 UTC
yep

Comment 2 Harald Hoyer 2008-02-20 18:12:15 UTC
udev-118-5.fc9


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