Bug 748205

Summary: drm: please move udev rules to /lib/udev/rules.d
Product: [Fedora] Fedora Reporter: Kay Sievers <kay>
Component: libdrmAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ajax
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-25 17:46:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kay Sievers 2011-10-23 00:33:37 UTC
RPMs should place udev rules in /lib/udev/rules.d/, not in /etc.
/etc is reserved for admins to overwrite udev config shipped by
packages. It should not be used by packages directly.

Also please always match on the subsystem. Matching on device names only
is not necessarily safe. This name is already very close to the names used
for the subsystem "sound", so "drm" should be added.

Udev rules should not overwrite NAME=, the device node is created by the
kernel anyway. Udev does not support renaming kernel devices, it just
suppresses the error when the name is the same as the kernel name.

Something like that should be fine:
  KERNEL=="controlD[0-9]*", SUBSYSTEM=="drm", MODE="0666"

Thanks!

Comment 1 Adam Jackson 2011-10-25 17:46:13 UTC
Fixed in libdrm-2.4.26-3.fc17