aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-01-28 15:09:30 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-01-28 15:09:30 +0000
commit645111253f073b5ef5a0424d8532ad1d7fddcce0 (patch)
treed94384205805295ac136e201e39b92a08b8c3ba2
parent16fd3499572025240a40db97b39262fd7bb699fc (diff)
downloadmsec-645111253f073b5ef5a0424d8532ad1d7fddcce0.tar
msec-645111253f073b5ef5a0424d8532ad1d7fddcce0.tar.gz
msec-645111253f073b5ef5a0424d8532ad1d7fddcce0.tar.bz2
msec-645111253f073b5ef5a0424d8532ad1d7fddcce0.tar.xz
msec-645111253f073b5ef5a0424d8532ad1d7fddcce0.zip
Properly handle cases when chkrootkit is not installed or was uninstalled
(#51309).
-rwxr-xr-xcron-sh/security.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 17ebb4a..a888af2 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -192,6 +192,8 @@ if [[ ${CHECK_CHKROOTKIT} == yes ]]; then
if [ -x /usr/sbin/chkrootkit ]; then
# do not check on NFS
/usr/sbin/chkrootkit -n ${CHKROOTKIT_OPTION} > ${CHKROOTKIT_TODAY}
+ else
+ echo "Security Warning: chkrootkit check is enabled but chkrootkit is not installed." > ${CHKROOTKIT_TODAY}
fi
fi