aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-03-07 16:45:04 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-03-07 16:45:04 +0000
commit7b7859e7b69b54e30eb181857e608f5cccce999a (patch)
tree56ac44e36fe8e86506db726b5e54ebc9e3f82222 /cron-sh
parente67d4c05d0d218ede7f02ffc9b86dc2c95f75d1d (diff)
downloadmsec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar
msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.gz
msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.bz2
msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.xz
msec-7b7859e7b69b54e30eb181857e608f5cccce999a.zip
*** empty log message ***
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/promisc_check.sh9
-rwxr-xr-xcron-sh/security.sh6
2 files changed, 7 insertions, 8 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh
index cabf0a8..ec0526d 100755
--- a/cron-sh/promisc_check.sh
+++ b/cron-sh/promisc_check.sh
@@ -6,7 +6,7 @@
if [[ -f /etc/security/msec/security.conf ]]; then
. /etc/security/msec/security.conf
else
- echo "/etc/security/msec/security.conf don't exist."
+ echo "/etc/security/msec/security.conf doesn't exist."
exit 1
fi
@@ -29,11 +29,8 @@ Ttylog() {
fi
}
+# Check if a network interface is in promiscuous mode...
PROMISC="/usr/bin/promisc_check -q"
-#
-# Check if a network interface is in promisc check...
-# Written by Vandoorselaere Yoann, <yoann@mandrakesoft.com>
-#
LogPromisc() {
date=`date`
@@ -57,7 +54,7 @@ if [[ ${CHECK_PROMISC} == no ]]; then
fi
for INTERFACE in `${PROMISC}`; do
- LogPromisc $INTERFACE
+ LogPromisc ${INTERFACE}
done
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 43ad9d6..ee94863 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -72,6 +72,8 @@ fi
netstat -pvlA inet 2> /dev/null > ${OPEN_PORT_TODAY};
+
+# Hard disk related file check; the less priority the better...
nice --adjustment=+19 find ${DIR} -xdev -type f -perm +04000 -user root -printf "${PRINT}" 2> /dev/null | sort > ${SUID_ROOT_TODAY}
nice --adjustment=+19 find ${DIR} -xdev -type f -perm +02000 -printf "${PRINT}" 2> /dev/null | sort > ${SUID_GROUP_TODAY}
nice --adjustment=+19 find ${DIR} -xdev -type f -perm -2 -printf "${PRINT}" 2> /dev/null | sort > ${WRITEABLE_TODAY}
@@ -115,8 +117,8 @@ Maillog() {
##################
-. /etc/security/msec/cron-sh/diff_check.sh
-. /etc/security/msec/cron-sh/security_check.sh
+. /usr/share/msec/diff_check.sh
+. /usr/share/msec/security_check.sh