aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-xinit-sh/level5.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 0d9b58c..195b354 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -96,6 +96,8 @@ echo -e "done.\n"
# Disable all server :
echo "Setting secure level variable to 5 :"
AddRules "SECURE_LEVEL=5" /etc/profile
+AddRules "SECURE_LEVEL=5" /etc/zprofile
+
IFS="
"
@@ -119,14 +121,19 @@ echo -e "done.\n";
# /etc/profile
echo "Setting umask to 077 (u=rw) :"
AddRules "umask 077" /etc/profile
+AddRules "umask 077" /etc/zprofile
echo "Adding \"normal\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile quiet
AddRules "export PATH SECURE_LEVEL" /etc/profile
+AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/zprofile quiet
+AddRules "export PATH SECURE_LEVEL" /etc/zprofile
+
if [[ -f /usr/lib/libsafe.so.1.2 ]]; then
echo "Enabling stack overflow protection :"
- AddRules "export LD_PRELOAD=/usr/lib/libsafe.so.1.2" /etc/profile
+ AddRules "export LD_PRELOAD=/usr/lib/libsafe.so.1.3" /etc/profile
+ AddRules "export LD_PRELOAD=/usr/lib/libsafe.so.1.3" /etc/zprofile
fi
# Do not boot on a shell