valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

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

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