aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/level4.sh3
-rwxr-xr-xinit-sh/level5.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 7889b7e..79be32b 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -110,8 +110,9 @@ 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
-if [[ -f /lib/libsafe.so.1.3 ]]; then
+if [[ -f /lib/libsafe.so.2 ]]; then
echo "Enabling stack overflow protection :"
+ touch /etc/ld.so.preload
AddRules "/lib/libsafe.so.2" /etc/ld.so.preload
fi
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 08517f6..a883b5e 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -120,8 +120,9 @@ echo "Setting umask to 077 (u=rw) :"
AddRules "umask 077" /etc/profile.d/msec.sh
AddRules "umask 077" /etc/profile.d/msec.csh
-if [[ -f /lib/libsafe.so.1.3 ]]; then
+if [[ -f /lib/libsafe.so.2]]; then
echo "Enabling stack overflow protection :"
+ touch /etc/ld.so.preload
AddRules "/lib/libsafe.so.2" /etc/ld.so.preload
fi