aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-09-20 15:35:51 +0000
committerFlorin Grad <florin@mandriva.com>2001-09-20 15:35:51 +0000
commit0c399d9c8e8449bb2d34402ecffc8601fc17d699 (patch)
tree88c6d7ac4856a41cb5ca45c9df75c6293a8ef696
parent14c324c792d17c6adad49eba770965723b782785 (diff)
downloadmsec-0c399d9c8e8449bb2d34402ecffc8601fc17d699.tar
msec-0c399d9c8e8449bb2d34402ecffc8601fc17d699.tar.gz
msec-0c399d9c8e8449bb2d34402ecffc8601fc17d699.tar.bz2
msec-0c399d9c8e8449bb2d34402ecffc8601fc17d699.tar.xz
msec-0c399d9c8e8449bb2d34402ecffc8601fc17d699.zip
remove the /etc/profile entries and use /etc/profile.d/msec*sh|csh instead
-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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-