anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0626-rules-disable-support-for-Lenovo-IR-cameras.patch

923a60
From 647615bfa4015336eb88f6cb44dc111f1d713df7 Mon Sep 17 00:00:00 2001
923a60
From: Michal Sekletar <msekleta@redhat.com>
923a60
Date: Wed, 13 Jun 2018 14:33:18 +0200
923a60
Subject: [PATCH] rules: disable support for Lenovo IR cameras
923a60
923a60
Resolves: #1540418
923a60
---
923a60
 Makefile.am                                    | 1 +
923a60
 rules/40-redhat-disable-lenovo-ir-camera.rules | 6 ++++++
923a60
 2 files changed, 7 insertions(+)
923a60
 create mode 100644 rules/40-redhat-disable-lenovo-ir-camera.rules
923a60
923a60
diff --git a/Makefile.am b/Makefile.am
923a60
index 8c73326fa8..cbc120dade 100644
923a60
--- a/Makefile.am
923a60
+++ b/Makefile.am
923a60
@@ -3522,6 +3522,7 @@ dist_udevrules_DATA += \
923a60
 	rules/80-net-setup-link.rules \
923a60
 	rules/95-udev-late.rules \
923a60
 	rules/40-redhat.rules \
923a60
+	rules/40-redhat-disable-lenovo-ir-camera.rules \
923a60
 	rules/73-idrac.rules \
923a60
         rules/80-net-name-slot.rules
923a60
 
923a60
diff --git a/rules/40-redhat-disable-lenovo-ir-camera.rules b/rules/40-redhat-disable-lenovo-ir-camera.rules
923a60
new file mode 100644
923a60
index 0000000000..ea326d4aba
923a60
--- /dev/null
923a60
+++ b/rules/40-redhat-disable-lenovo-ir-camera.rules
923a60
@@ -0,0 +1,6 @@
923a60
+# Disable known IR cameras in Lenovo Notebooks
923a60
+SUBSYSTEM=="usb", ATTRS{idVendor}=="5986", ATTRS{idProduct}=="211a", ATTR{authorized}="0"
923a60
+SUBSYSTEM=="usb", ATTRS{idVendor}=="5986", ATTRS{idProduct}=="1141", ATTR{authorized}="0"
923a60
+SUBSYSTEM=="usb", ATTRS{idVendor}=="04f2", ATTRS{idProduct}=="b605", ATTR{authorized}="0"
923a60
+SUBSYSTEM=="usb", ATTRS{idVendor}=="04f2", ATTRS{idProduct}=="b613", ATTR{authorized}="0"
923a60
+SUBSYSTEM=="usb", ATTRS{idVendor}=="04f2", ATTRS{idProduct}=="b615", ATTR{authorized}="0"
923a60
\ No newline at end of file