Browse Source

Additional tripwire rules

Bob Mottram 7 years ago
parent
commit
4efb04dce5
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-base-tripwire

+ 7
- 0
src/freedombone-base-tripwire View File

@@ -124,6 +124,13 @@ function install_tripwire {
124 124
     if ! grep -q '!/usr/local/lib/node_modules' /etc/tripwire/twpol.txt; then
125 125
         sed -i '\|/etc\t\t->.*|a\    !/usr/local/lib/node_modules ;' /etc/tripwire/twpol.txt
126 126
     fi
127
+    # Events here are likely due to USB HRNG activity
128
+    if ! grep -q '!/dev/char' /etc/tripwire/twpol.txt; then
129
+        sed -i '\|/dev\t\t->.*|a\    !/dev/char ;' /etc/tripwire/twpol.txt
130
+    fi
131
+    if ! grep -q '!/dev/bus/usb' /etc/tripwire/twpol.txt; then
132
+        sed -i '\|/dev\t\t->.*|a\    !/dev/bus/usb ;' /etc/tripwire/twpol.txt
133
+    fi
127 134
 
128 135
     # Not much is in /usr/local/bin other than project commands and avoiding it removes
129 136
     # problems with updates. This is a tradeoff, but not by much.