diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-02-22 13:23:18 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-02-22 13:23:18 +0000 |
commit | 77a72f6e57d31bbc906a8c15916dbadc38ead561 (patch) | |
tree | aa6557426c805c564702e1df10aaa689105d747b /cron-sh/promisc_check.sh | |
parent | 6035d2f0cd72ca1bdce8d066a077159b4fd210b9 (diff) | |
download | msec-77a72f6e57d31bbc906a8c15916dbadc38ead561.tar msec-77a72f6e57d31bbc906a8c15916dbadc38ead561.tar.gz msec-77a72f6e57d31bbc906a8c15916dbadc38ead561.tar.bz2 msec-77a72f6e57d31bbc906a8c15916dbadc38ead561.tar.xz msec-77a72f6e57d31bbc906a8c15916dbadc38ead561.zip |
use security.conf from /var/lib/msec
Diffstat (limited to 'cron-sh/promisc_check.sh')
-rwxr-xr-x | cron-sh/promisc_check.sh | 16 |
1 files changed, 7 insertions, 9 deletions
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 |