X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fudev-acl%2F70-acl.rules;h=78e3ebae5351f43d0874c414a5e9147c107001da;hb=456863e3514d5432e1540c9017731d3e7612e20b;hp=fc270395970e3f977cffd74fbc29b0c6c3a6a5a4;hpb=af23b83ea714756aa4bfed7f7501739c69428e40;p=elogind.git diff --git a/extras/udev-acl/70-acl.rules b/extras/udev-acl/70-acl.rules index fc2703959..78e3ebae5 100644 --- a/extras/udev-acl/70-acl.rules +++ b/extras/udev-acl/70-acl.rules @@ -1,6 +1,7 @@ # do not edit this file, it will be overwritten on update 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 @@ -17,6 +18,9 @@ KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_M # USB scanners ENV{libsane_matched}=="yes", ENV{ACL_MANAGE}="1" +# HPLIP devices (necessary for ink level check and HP tool maintenance) +ENV{ID_HPLIP}=="1", ENV{ACL_MANAGE}="1" + # optical drives SUBSYSTEM=="block", ENV{ID_CDROM}=="1", ENV{ACL_MANAGE}="1" @@ -29,6 +33,15 @@ SUBSYSTEM=="input", SUBSYSTEMS=="sound", ENV{ACL_MANAGE}="1" SUBSYSTEM=="video4linux", ENV{ACL_MANAGE}="1" SUBSYSTEM=="dvb", ENV{ACL_MANAGE}="1" +# IIDC devices: industrial cameras and some webcams +SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", ENV{ACL_MANAGE}="1" +# AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more +SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", ENV{ACL_MANAGE}="1" + +# old style firewire devices +KERNEL=="dv1394-[0-9]*", ENV{ACL_MANAGE}="1" +KERNEL=="video1394-[0-9]*", ENV{ACL_MANAGE}="1" + # fingerprint readers SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="2016", ENV{ACL_MANAGE}="1" @@ -38,6 +51,18 @@ SUBSYSTEM=="drm", KERNEL=="card*", ENV{ACL_MANAGE}="1" # KVM SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1" +# smart-card readers +ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1" + +# joysticks +SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1" + +# smart phones +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", ENV{ACL_MANAGE}="1" + +# color measurement devices +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", \ RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"