]> git.pld-linux.org Git - packages/chkrootkit.git/commitdiff
- check periodicaly from cron
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 13 Feb 2002 15:34:57 +0000 (15:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chkrootkit-check -> 1.1
    chkrootkit.sysconfig -> 1.1

chkrootkit-check [new file with mode: 0644]
chkrootkit.sysconfig [new file with mode: 0644]

diff --git a/chkrootkit-check b/chkrootkit-check
new file mode 100644 (file)
index 0000000..ae7864e
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Get service config
+[ -f /etc/sysconfig/aide ] && . /etc/sysconfig/aide
+
+DATA=`date`
+SYSTEM=`hostname`
+
+/usr/bin/chkrootkit | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' > /var/tmp/$$
+LIN=`grep -c . /var/tmp/$$`
+if [ "$LIN" -gt "1" ]; then
+       mail -s "CHKROOTKIT $SYSTEM $DATA" $CHKROOTKIT_MAILTO < /var/tmp/$$
+fi
+rm -f /var/tmp/$$
diff --git a/chkrootkit.sysconfig b/chkrootkit.sysconfig
new file mode 100644 (file)
index 0000000..e923f30
--- /dev/null
@@ -0,0 +1,5 @@
+# Customized setings for chkrootkit
+
+# Define who should get mail with chkrootkit report
+CHKROOTKIT_MAILTO=root
+
This page took 0.066752 seconds and 4 git commands to generate.