aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-07 00:25:00 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-07 00:25:00 +0000
commit5c584609388043800c5f70b4fd5fd0815f90d927 (patch)
tree269a01920479261275366f5907afb21abea589af /cron-sh
parentc7a5d9f905c9e24bc04247b3fedea0732f234477 (diff)
downloadmsec-5c584609388043800c5f70b4fd5fd0815f90d927.tar
msec-5c584609388043800c5f70b4fd5fd0815f90d927.tar.gz
msec-5c584609388043800c5f70b4fd5fd0815f90d927.tar.bz2
msec-5c584609388043800c5f70b4fd5fd0815f90d927.tar.xz
msec-5c584609388043800c5f70b4fd5fd0815f90d927.zip
Improved system permissions check.
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security_check.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 8714128..7e2bdf6 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -56,10 +56,10 @@ fi
if [[ ${CHECK_PERMS} == yes ]]; then
# running msec_perms
- test -x /usr/bin/msecperms && /usr/sbin/msecperms 2>&1 > ${TMP}
+ /usr/sbin/msecperms > ${TMP} 2>&1
if [[ -s ${TMP} ]]; then
- printf "\tPermissions changes on system files:\n" >> ${SECURITY}
- cat ${TMP} >> ${SECURITY}
+ printf "\nPermissions changes on system files:\n" >> ${SECURITY}
+ cat ${TMP} | sed -e 's/WARNING: //g' >> ${SECURITY}
fi
fi