- Adjusted udev rules to be less permissive. We use ConsoleKit to add ACLs to the device nodes, so world-writable device nodes can be avoided.
32 lines
1.7 KiB
Diff
32 lines
1.7 KiB
Diff
diff -up hplip-2.7.9/data/rules/55-hpmud.rules.udev-rules hplip-2.7.9/data/rules/55-hpmud.rules
|
|
--- hplip-2.7.9/data/rules/55-hpmud.rules.udev-rules 2007-10-03 10:36:09.000000000 +0100
|
|
+++ hplip-2.7.9/data/rules/55-hpmud.rules 2007-10-03 10:41:28.000000000 +0100
|
|
@@ -1,18 +1,20 @@
|
|
# Udev rules file for HP printer products.
|
|
|
|
ACTION!="add", GOTO="hpmud_rules_end"
|
|
-SUBSYSTEM=="ppdev", OWNER="lp", GROUP="lp", MODE="0666"
|
|
-SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
|
|
+SUBSYSTEM=="ppdev", GROUP="lp", MODE="0664"
|
|
+SUBSYSTEM!="usb", GOTO="hpmud_rules_end"
|
|
+ATTR{devnum}!="?*", GOTO="hpmud_rules_end"
|
|
+ATTR{busnum}!="?*", GOTO="hpmud_rules_end"
|
|
|
|
# Check for AiO products (0x03f0xx11).
|
|
-SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", OWNER="lp", GROUP="lp", MODE="0666"
|
|
+SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", GROUP="lp", MODE="0664"
|
|
# Check for Photosmart products (0x03f0xx02).
|
|
-SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??02", OWNER="lp", GROUP="lp", MODE="0666"
|
|
+SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??02", GROUP="lp", MODE="0664"
|
|
# Check for Business Inkjet products (0x03f0xx12).
|
|
-SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??12", OWNER="lp", GROUP="lp", MODE="0666"
|
|
+SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??12", GROUP="lp", MODE="0664"
|
|
# Check for Deskjet products (0x03f0xx04).
|
|
-SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??04", OWNER="lp", GROUP="lp", MODE="0666"
|
|
+SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??04", GROUP="lp", MODE="0664"
|
|
# Check for LaserJet products (0x03f0xx17).
|
|
-SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??17", OWNER="lp", GROUP="lp", MODE="0666"
|
|
+SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??17", GROUP="lp", MODE="0664"
|
|
|
|
LABEL="hpmud_rules_end"
|