aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-09-25 20:16:02 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-09-25 20:16:02 +0200
commit92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3 (patch)
tree2ac43b16246f031a0e6dc9f747eae1416eab04ce
parent9df186ede3d675030a02b41dcd363f8767e5c004 (diff)
downloadmsec-92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3.tar
msec-92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3.tar.gz
msec-92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3.tar.bz2
msec-92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3.tar.xz
msec-92cb687deaf06ab79dfb3e6ff7ea921e4696bcd3.zip
set permission on just created MAIL_LOG_TODAY mga#19335
-rwxr-xr-xcron-sh/security.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 41bcf78..3021a78 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -122,6 +122,7 @@ if [[ -s ${SECURITY} ]]; then
mv ${MAIL_LOG_TODAY} ${MAIL_LOG_YESTERDAY};
fi
cat ${MSEC_TMP} > ${MAIL_LOG_TODAY}
+ /usr/sbin/msecperms -q ${MAIL_LOG_TODAY}
Maillog "[msec] *** Security Check on ${REPORT_HOSTNAME}, ${REPORT_DATE} ***" "${MSEC_TMP}"
Notifylog "`eval_gettext \"MSEC has performed Security Check on \\\${REPORT_HOSTNAME} on \\\${REPORT_DATE}. Detailed results are available in \\\${MAIL_LOG_TODAY}\"`"