Explorar el Código

More comprehensive tripwire reset

Bob Mottram hace 7 años
padre
commit
0485e73a7d
Se han modificado 1 ficheros con 13 adiciones y 1 borrados
  1. 13
    1
      src/freedombone-controlpanel

+ 13
- 1
src/freedombone-controlpanel Ver fichero

@@ -1280,8 +1280,20 @@ function reset_tripwire {
1280 1280
         return
1281 1281
     fi
1282 1282
     clear
1283
+    echo $'Creating configuration...'
1284
+    echo '
1285
+
1286
+       ' | twadmin --create-cfgfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twcfg.txt
1287
+    echo $'Resetting policy...'
1288
+    echo '
1289
+
1290
+       ' | twadmin --create-polfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twpol.txt
1291
+    echo $'Creating tripwire database'
1292
+    echo '
1293
+
1294
+' | tripwire --init --cfgfile /etc/tripwire/tw.cfg --polfile /etc/tripwire/tw.pol --dbfile /var/lib/tripwire/${HOSTNAME}.twd
1283 1295
     echo $'Resetting the Tripwire...'
1284
-    echo ' '
1296
+    echo ''
1285 1297
     echo '
1286 1298
 
1287 1299
                 ' | reset-tripwire