aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-11-29 13:26:10 +0000
committerFlorin Grad <florin@mandriva.com>2001-11-29 13:26:10 +0000
commit2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5 (patch)
tree64210f2ce98775d9d3df1c56ceae35712b05624b
parent223ad2b149ae600e372b1315d7ff27ca37a99a0a (diff)
downloadmsec-2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5.tar
msec-2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5.tar.gz
msec-2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5.tar.bz2
msec-2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5.tar.xz
msec-2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5.zip
add sysconfig/msec support
-rwxr-xr-xinit-sh/levelsnf.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/init-sh/levelsnf.sh b/init-sh/levelsnf.sh
index 1a4ee0e..28fcc23 100755
--- a/init-sh/levelsnf.sh
+++ b/init-sh/levelsnf.sh
@@ -81,9 +81,7 @@ AddRules "0 4 * * * root /usr/share/msec/security.sh" /etc/crontab
# Server update
echo "Setting secure level variable to snf :"
-AddRules "export SECURE_LEVEL=snf" /etc/profile.d/msec.sh
-AddRules "setenv SECURE_LEVEL snf" /etc/profile.d/msec.csh
-
+AddRules "SECURE_LEVEL=4" /etc/sysconfig/msec
export SECURE_LEVEL=snf
@@ -106,9 +104,9 @@ done
echo -e "done.\n";
# /etc/profile.d/msec.{sh,csh}
-echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :"
-AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.sh
-AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.csh
+echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :"
+AddRules "UMASK_ROOT=022" /etc/sysconfig/msec
+AddRules "UMASK_USER=077" /etc/sysconfig/msec
if [[ -f /lib/libsafe.so.2 ]]; then
echo "Enabling stack overflow protection :"