Procházet zdrojové kódy

Improve the tripwire policy

Bob Mottram před 10 roky
rodič
revize
7979839cc3
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone Zobrazit soubor

@@ -8038,8 +8038,12 @@ function intrusion_detection {
8038 8038
   chmod +x /usr/bin/reset-tripwire
8039 8039
 
8040 8040
   reset-tripwire
8041
-  sed -i 's/SYSLOGREPORTING =true/#SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt
8041
+  sed -i 's/SYSLOGREPORTING.*/SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt
8042 8042
   sed -i '/# These files change the behavior of the root account/,/}/ s/.*//g' /etc/tripwire/twpol.txt
8043
+  # Don't show any changes to /proc
8044
+  sed -i 's|/proc.*||g' /etc/tripwire/twpol.txt
8045
+  # Don't report log changes
8046
+  sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
8043 8047
   reset-tripwire
8044 8048
 
8045 8049
   echo 'intrusion_detection' >> $COMPLETION_FILE