udev: prevent dom0 processes from accessing templates root image

This commit is contained in:
Marek Marczykowski-Górecki 2014-07-04 04:28:50 +02:00
parent 7bfa26bd2f
commit 9687180a62

View File

@ -3,3 +3,4 @@
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
# ENV{DM_NAME} not available yet
ACTION!="remove", SUBSYSTEM=="block", ATTR{dm/name}=="snapshot-*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
ACTION!="remove", SUBSYSTEM=="block", ATTR{dm/name}=="origin-*", ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"