summaryrefslogtreecommitdiffstats
path: root/udev/95-dm-notify.rules
blob: 5834239a06cc56b6bfaff6e6a11b33b5dc176f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Udev rules for device-mapper devices.
#
# These rules are responsible for sending a notification to a process
# waiting for completion of udev rules. The process is identified by
# a cookie value sent within "change" and "remove" events (the cookie
# value is set before by that process for every action requested).
# Also, it sets default permissions for DM devices if not set already.

SUBSYSTEM!="block", GOTO="dm_end"
KERNEL!="dm-[0-9]*", GOTO="dm_end"
ACTION!="change|remove", GOTO="dm_end"

ACTION=="change", OWNER:="root", GROUP:="root", MODE:="600"
ENV{DM_COOKIE}=="?*", RUN+="$env{DM_SBIN_PATH}/dmsetup udevcomplete $env{DM_COOKIE}"

LABEL="dm_end"