diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-06-23 20:53:19 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-06-23 20:53:19 +0000 |
commit | c8ede8c05478d1f85a43d8029cb082c2a7d6e8cb (patch) | |
tree | 3b2f85cfd74928713a06ea1e78be04c0c9731bb7 /cron-sh | |
parent | 24a6a6bf9bf97657b649860d45a04a2f85a1dfb1 (diff) | |
download | msec-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')
-rwxr-xr-x | cron-sh/security.sh | 4 |
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 $$ |