aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-20 14:34:45 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-20 14:34:45 +0000
commitcaaa86243343eac53c48f5e2c121f343d85d2d22 (patch)
tree7f68d816e5f349ffc15cab5fe057c609999deebd /cron-sh
parent5d54aaccb907e8c02a5e0fdfcc3e4a81ab6b7c87 (diff)
downloadmsec-caaa86243343eac53c48f5e2c121f343d85d2d22.tar
msec-caaa86243343eac53c48f5e2c121f343d85d2d22.tar.gz
msec-caaa86243343eac53c48f5e2c121f343d85d2d22.tar.bz2
msec-caaa86243343eac53c48f5e2c121f343d85d2d22.tar.xz
msec-caaa86243343eac53c48f5e2c121f343d85d2d22.zip
Fixes for CHECK_RPM and CHECK_CHKROOTKIT.
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/diff_check.sh4
-rwxr-xr-xcron-sh/security.sh4
-rwxr-xr-xcron-sh/security_check.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index ad155ff..d3a142c 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -141,7 +141,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then
fi
### rpm database
-if [[ ${RPM_CHECK} == yes ]]; then
+if [[ ${CHECK_RPM} == yes ]]; then
if [[ -f ${RPM_QA_YESTERDAY} ]]; then
diff -u ${RPM_QA_YESTERDAY} ${RPM_QA_TODAY} > ${RPM_QA_DIFF}
if [ -s ${RPM_QA_DIFF} ]; then
@@ -181,7 +181,7 @@ if [[ ${RPM_CHECK} == yes ]]; then
fi
### Changed chkrootkit
-if [[ ${CHKROOTKIT_CHECK} == yes ]]; then
+if [[ ${CHECK_CHKROOTKIT} == yes ]]; then
if [[ -f ${CHKROOTKIT_YESTERDAY} ]]; then
diff -u ${CHKROOTKIT_YESTERDAY} ${CHKROOTKIT_TODAY} 1> ${CHKROOTKIT_DIFF}
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 982c4e3..f7dc729 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -173,7 +173,7 @@ fi
### rpm database check
-if [[ ${RPM_CHECK} == yes ]]; then
+if [[ ${CHECK_RPM} == yes ]]; then
rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\n" | sort > ${RPM_QA_TODAY}
rm -f ${RPM_VA_TODAY}.tmp
@@ -184,7 +184,7 @@ if [[ ${RPM_CHECK} == yes ]]; then
fi
### chkrootkit checks
-if [[ ${CHKROOTKIT_CHECK} == yes ]]; then
+if [[ ${CHECK_CHKROOTKIT} == yes ]]; then
if [ -x /usr/sbin/chkrootkit ]; then
/usr/sbin/chkrootkit ${CHKROOTKIT_OPTION} > ${CHKROOTKIT_TODAY}
fi
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 89daea2..c7bb664 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -262,7 +262,7 @@ fi
### rpm database checks
-if [[ ${RPM_CHECK} == yes ]]; then
+if [[ ${CHECK_RPM} == yes ]]; then
if [[ -s ${RPM_VA_TODAY} ]]; then
printf "\nSecurity Warning: These files belonging to packages are modified on the system :\n" >> ${SECURITY}
@@ -280,7 +280,7 @@ if [[ ${RPM_CHECK} == yes ]]; then
fi
### chkrootkit checks
-if [[ ${CHKROOTKIT_CHECK} == yes ]]; then
+if [[ ${CHECK_CHKROOTKIT} == yes ]]; then
if [[ -s ${CHKROOTKIT_TODAY} ]]; then
printf "\nChkrootkit report:\n" >> ${SECURITY}