aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-07-16 14:36:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-07-16 14:36:08 -0300
commitd8d756b9fd0bfb4b9d9514c411c7e01e8358e9c1 (patch)
tree4047f8edf1555cb9d9d3adc053a4084ddf5790d1
parentd40e1d8d5a91ddb040ee27a990ef7be571761157 (diff)
downloadpuppet-nodo-d8d756b9fd0bfb4b9d9514c411c7e01e8358e9c1.tar.gz
puppet-nodo-d8d756b9fd0bfb4b9d9514c411c7e01e8358e9c1.tar.bz2
Better BadUSB mitigation
-rw-r--r--files/etc/rc.local4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/etc/rc.local b/files/etc/rc.local
index b2ca780..2618f6e 100644
--- a/files/etc/rc.local
+++ b/files/etc/rc.local
@@ -43,6 +43,10 @@ fi
# See https://links.sarava.org/tags/badusb
if [ -e "/sys/module/usbcore/parameters/authorized_default" ]; then
echo "0" > /sys/module/usbcore/parameters/authorized_default
+
+ for bus in /sys/bus/usb/devices/usb*; do
+ echo $0 > $bus/authorized_default
+ done
fi
# Then exit