aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-06-23 20:53:19 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-06-23 20:53:19 +0000
commitc8ede8c05478d1f85a43d8029cb082c2a7d6e8cb (patch)
tree3b2f85cfd74928713a06ea1e78be04c0c9731bb7 /cron-sh/security.sh
parent24a6a6bf9bf97657b649860d45a04a2f85a1dfb1 (diff)
downloadmsec-c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb.tar
msec-c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb.tar.gz
msec-c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb.tar.bz2
msec-c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb.tar.xz
msec-c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb.zip
Check for open ports only when required.
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 17ebb4a..9b4040e 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -133,7 +133,9 @@ if [[ -f ${CHKROOTKIT_TODAY} ]]; then
mv -f ${CHKROOTKIT_TODAY} ${CHKROOTKIT_YESTERDAY}
fi
-netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY};
+if [[ ${CHECK_OPEN_PORT} == yes ]]; then
+ netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY};
+fi
ionice -c3 -p $$