aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init-sh/lib.sh51
1 files changed, 4 insertions, 47 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index c929ed6..499a3fa 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -328,8 +328,6 @@ CleanRules /etc/securetty
CommentUserRules /etc/securetty
CleanRules /etc/security/msec/security.conf
CommentUserRules /etc/security/msec/security.conf
-CleanRules /etc/profile
-CleanRules /etc/zprofile
CleanRules /etc/ld.so.preload
CleanLoaderRules
@@ -348,14 +346,16 @@ else
fi
-if [[ -f /etc/profile.d/msec.sh ]]; then
+if [[ -f /etc/profile.d/msec.sh && -f /etc/profile.d/msec.csh ]]; then
CleanRules /etc/profile.d/msec.sh
+ CleanRules /etc/profile.d/msec.csh
else
touch /etc/profile.d/msec.sh
+ touch /etc/profile.d/msec.csh
chmod 755 /etc/profile.d/msec.sh
+ chmod 755 /etc/profile.d/msec.csh
fi
-
echo -e "\nStarting to reconfigure the system : "
# For all secure level
echo "Setting spoofing protection : "
@@ -373,46 +373,3 @@ usermod -G xgrp xfs
/usr/share/msec/grpuser.sh --clean
echo
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-