chiark / gitweb /
udev-acl: no not encourage use of ACL_MANAGE outside of rules file
[elogind.git] / extras / udev-acl / 70-acl.rules
index 8380f53eb330446c7abe04d069291e4ef8610f94..fde265693c53814b99aa3483e03d9f8771a7825b 100644 (file)
@@ -1,7 +1,9 @@
 # do not edit this file, it will be overwritten on update
 
+# Do not use ACL_MANAGE outside of this file. This variable is private to
+# udev-acl of this udev release and may be replaced at any time.
+
 ENV{MAJOR}=="", GOTO="acl_end"
-ENV{ACL_MANAGE}=="0", GOTO="acl_end"
 ACTION!="add|change", GOTO="acl_apply"
 
 # PTP/MTP protocol devices, cameras, portable media players
@@ -69,7 +71,7 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", ENV{ACL_MANAG
 ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1"
 
 # apply ACL for all locally logged in users
-LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \
+LABEL="acl_apply", ENV{ACL_MANAGE}=="1", TEST=="/var/run/ConsoleKit/database", \
   RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
 
 LABEL="acl_end"