aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-15 05:18:07 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-15 05:18:07 +0000
commitbcfc307ac4c6b78be142175d9b92ccee544bc467 (patch)
tree3d7f297e31391f9cf24a4439f82a0a9dc6a2ef0a /cron-sh/security.sh
parent49280d4c91c1b3c1fb66ff564c40934198c28907 (diff)
downloadmsec-bcfc307ac4c6b78be142175d9b92ccee544bc467.tar
msec-bcfc307ac4c6b78be142175d9b92ccee544bc467.tar.gz
msec-bcfc307ac4c6b78be142175d9b92ccee544bc467.tar.bz2
msec-bcfc307ac4c6b78be142175d9b92ccee544bc467.tar.xz
msec-bcfc307ac4c6b78be142175d9b92ccee544bc467.zip
use umask from the secure level setting
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 4cb0d12..cabc812 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -7,6 +7,12 @@ fi
. /etc/security/msec/security.conf
+if [ -r /etc/sysconfig/msec ]; then
+ . /etc/sysconfig/msec
+fi
+
+umask ${UMASK_ROOT=077}
+
[[ ${MAIL_WARN} == yes ]] && [ -z ${MAIL_USER} ] && MAIL_USER="root"
export SUID_ROOT_TODAY="/var/log/security/suid_root.today"