aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/diff_check.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-09 15:46:22 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-09 15:46:22 +0000
commit8f1135461ee0e2621b23e75824bed3174e909d1b (patch)
treed91998a46dd7bde1c2c7e8db2d6895fe904edb64 /cron-sh/diff_check.sh
parent15cf5616a22ee439df57846774e2f6d524a8c713 (diff)
downloadmsec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.gz
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.bz2
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.xz
msec-8f1135461ee0e2621b23e75824bed3174e909d1b.zip
*** empty log message ***
Diffstat (limited to 'cron-sh/diff_check.sh')
-rwxr-xr-xcron-sh/diff_check.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index 2448481..3c08858 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -57,7 +57,7 @@ rm -f ${TMP} ${SECURITY_TMP} >& /dev/null
### Functions ###
Syslog() {
- if [ ${SYSLOG_WARN}=="yes" ]; then
+ if [[ ${SYSLOG_WARN} == yes ]]; then
cat ${1} | while read line; do
/sbin/initlog --string="${line}"
done
@@ -65,7 +65,7 @@ Syslog() {
}
Ttylog() {
- if [ ${TTY_WARN}=="yes" ]; then
+ if [[ ${TTY_WARN} == yes ]]; then
for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do
echo -e "$1" > /dev/$i
done
@@ -76,7 +76,7 @@ Ttylog() {
### New Suid root files detection
-if [ ${CHECK_SUID_ROOT}=="yes" ]; then
+if [[ ${CHECK_SUID_ROOT} == yes ]]; then
if [ -f ${SUID_ROOT_TODAY} ]; then
mv ${SUID_ROOT_TODAY} ${SUID_ROOT_YESTERDAY}
@@ -121,7 +121,7 @@ if [ ${CHECK_SUID_GROUP} ]; then
fi
### Writable files detection
-if [ ${CHECK_WRITEABLE}=="yes" ]; then
+if [[ ${CHECK_WRITEABLE} == yes ]]; then
if [ -f ${WRITEABLE_TODAY} ]; then
mv -f ${WRITEABLE_TODAY} ${WRITEABLE_YESTERDAY}
@@ -143,7 +143,7 @@ if [ ${CHECK_WRITEABLE}=="yes" ]; then
fi
### Search Non Owned files
-if [ ${CHECK_UNOWNED}=="yes" ]; then
+if [[ ${CHECK_UNOWNED} == yes ]]; then
if [ -f ${UNOWNED_TODAY} ]; then
mv -f ${UNOWNED_TODAY} ${UNOWNED_YESTERDAY}
@@ -179,7 +179,7 @@ if [ ${CHECK_UNOWNED}=="yes" ]; then
fi
### Md5 check for SUID root file
-if [ ${CHECK_SUID_MD5}=="yes" ]; then
+if [[ ${CHECK_SUID_MD5} == yes ]]; then
if [ -f ${SUID_MD5_TODAY} ]; then
mv ${SUID_MD5_TODAY} ${SUID_MD5_YESTERDAY}
fi
@@ -205,7 +205,7 @@ if [ ${CHECK_SUID_MD5}=="yes" ]; then
fi
### Changed open port
-if [ ${CHECK_OPEN_PORT}=="yes" ]; then
+if [[ ${CHECK_OPEN_PORT} == yes ]]; then
if [ -f ${OPEN_PORT_TODAY} ]; then
mv -f ${OPEN_PORT_TODAY} ${OPEN_PORT_YESTERDAY}
fi