aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security_check.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-27 16:29:51 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-27 16:29:51 +0000
commit400bffd28039227e43fef4229f7d8a0c54bf8256 (patch)
treeb0ad1b03cecd5073439bb0e7879f115f5a502f3a /cron-sh/security_check.sh
parent5131eb47114909bdce4cebebc09a57a5a72ad039 (diff)
downloadmsec-400bffd28039227e43fef4229f7d8a0c54bf8256.tar
msec-400bffd28039227e43fef4229f7d8a0c54bf8256.tar.gz
msec-400bffd28039227e43fef4229f7d8a0c54bf8256.tar.bz2
msec-400bffd28039227e43fef4229f7d8a0c54bf8256.tar.xz
msec-400bffd28039227e43fef4229f7d8a0c54bf8256.zip
*** empty log message ***
Diffstat (limited to 'cron-sh/security_check.sh')
-rwxr-xr-xcron-sh/security_check.sh21
1 files changed, 3 insertions, 18 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index bc0cd62..0c0948a 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -24,24 +24,6 @@ if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
fi
-### Functions ###
-
-Syslog() {
- if [[ ${SYSLOG_WARN} == yes ]]; then
- cat ${1} | while read line; do
- /sbin/initlog --string="${line}"
- done
- fi
-}
-
-Ttylog() {
- if [[ ${TTY_WARN} == yes ]]; then
- for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do
- cat ${1} > /dev/${i}
- done
- fi
-}
-
### Writeable file detection
if [[ ${CHECK_WRITEABLE} == yes ]]; then
if [[ -s ${WRITEABLE_TODAY} ]]; then
@@ -265,9 +247,12 @@ if [[ -s ${SECURITY} ]]; then
Syslog ${SECURITY}
Ttylog ${SECURITY}
date=`date`
+
echo -e "\n\n*** Security Check, ${date} ***\n" >> ${SECURITY_LOG}
cat ${SECURITY} >> ${SECURITY_LOG}
cat ${INFOS} >> ${SECURITY_LOG}
+
+ Maillog "*** Security Check, ${date} ***" "${SECURITY} ${INFOS}"
fi
if [[ -f ${SECURITY} ]]; then