From 77a72f6e57d31bbc906a8c15916dbadc38ead561 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Fri, 22 Feb 2002 13:23:18 +0000 Subject: use security.conf from /var/lib/msec --- cron-sh/promisc_check.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'cron-sh/promisc_check.sh') diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh index cd38962..09df5d9 100755 --- a/cron-sh/promisc_check.sh +++ b/cron-sh/promisc_check.sh @@ -28,13 +28,17 @@ LogPromisc() { } -if [[ -f /etc/security/msec/security.conf ]]; then - . /etc/security/msec/security.conf +if [[ -f /var/lib/msec/security.conf ]]; then + . /var/lib/msec/security.conf else - echo "/etc/security/msec/security.conf doesn't exist." + echo "/var/lib/msec/security.conf doesn't exist." exit 1 fi +if [[ -f /etc/security/msec/security.conf ]]; then + . /etc/security/msec/security.conf +fi + if tail /var/log/security.log | grep -q "promiscuous"; then # Dont flood with warning. exit 0 @@ -42,12 +46,6 @@ fi # Check if a network interface is in promiscuous mode... -if [[ -f /etc/security/msec/security.conf ]]; then - . /etc/security/msec/security.conf -else - exit 1 -fi - if [[ ${CHECK_PROMISC} == no ]]; then exit 0; fi -- cgit v1.2.1