Bug 1373659 - udev-147-2.73.el6_8.1 ignoring some custom rules (device ownership)
Summary: udev-147-2.73.el6_8.1 ignoring some custom rules (device ownership)
Keywords:
Status: CLOSED DUPLICATE of bug 1371215
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: udev
Version: 6.8
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Michal Sekletar
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-06 21:55 UTC by Timo Kokkonen
Modified: 2016-09-09 10:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-09 10:22:42 UTC
Target Upstream Version:


Attachments (Terms of Use)
udev debug output from udev-147-2.73.el6_8.1 (17.13 KB, text/plain)
2016-09-06 21:55 UTC, Timo Kokkonen
no flags Details
udev debug output from udev-147-2.73.el6 (17.58 KB, text/plain)
2016-09-06 21:57 UTC, Timo Kokkonen
no flags Details

Description Timo Kokkonen 2016-09-06 21:55:41 UTC
Created attachment 1198428 [details]
udev debug output from udev-147-2.73.el6_8.1

Description of problem:
udev-147-2.73.el6_8.1 seems to have introduced bug where rules from /etc/udev/rules.d/12-dm-permissions.rules (that set device ownership) stop working. Rolling back "udev" RPM to previous version (udev-147-2.73.el6) fixes the issue.

Version-Release number of selected component (if applicable):
udev-147-2.73.el6_8.1.x86_64

How reproducible:
Always (after installing/upgrading to udev-147-2.73.el6_8.1.x86_64.rpm) 

Steps to Reproduce:
1. Update/create /etc/udev/rules.d/12-dm-permission.rules to include rules setting custom ownershipt for specific LV devices. For example:
---
# Udev rules for device-mapper devices.
# For more info see: /usr/share/doc/device-mapper-1.02.53/12-dm-permissions.rules

ACTION!="add|change", GOTO="dm_end"
ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="dm_end"

ENV{DM_VG_NAME}=="vg*", ENV{DM_LV_NAME}=="ifx*", OWNER:="informix", GROUP:="informix", MODE:="660"

LABEL="dm_end"
---

2. Create LV matching the custom rule (/dev/vg01/ifxtest for example)
3. Check permissions of the /dev/dm-?? that got created...

Actual results:

brw-rw----. 1 root disk 253, 38 Sep  6 13:42 /dev/dm-38

Expected results:

brw-rw----. 1 informix informix 253, 38 Sep  6 13:50 /dev/dm-38


Additional info:

Noticeable difference between the old udev versions (that work correctly) and the new version (that does not work correctly), is that old versions logged "set permissions" log entry like this:

Sep  6 13:50:13 qavm21 udevd-work[11467]: set permissions /dev/dm-38, 060660, uid=202, gid=202

While new version doesnt do this anymore (and likely thats why permissions dont get set correctly?).

Attached is log output from udev with the "broken" udev-147-2.73.el6_8.1 and "working" udev-147-2.73.el6, when issuing same command "lvcreate -L 1M -n ifxtest vg01".

Comment 1 Timo Kokkonen 2016-09-06 21:57:10 UTC
Created attachment 1198429 [details]
udev debug output from udev-147-2.73.el6

Comment 4 Michal Sekletar 2016-09-09 10:22:42 UTC
This is now fixed with udev-147-2.73.el6_8.2.

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


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