aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level5.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-03-08 14:01:47 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-03-08 14:01:47 +0000
commitf6b197970ba833ea3e629a29805681fde8d4b811 (patch)
tree55b4fa4ab2962a86b77f5338342d92ab21ebe70d /init-sh/level5.sh
parentbac62ec2c6fc141a00acd131278befa0ba5f1c5a (diff)
downloadmsec-f6b197970ba833ea3e629a29805681fde8d4b811.tar
msec-f6b197970ba833ea3e629a29805681fde8d4b811.tar.gz
msec-f6b197970ba833ea3e629a29805681fde8d4b811.tar.bz2
msec-f6b197970ba833ea3e629a29805681fde8d4b811.tar.xz
msec-f6b197970ba833ea3e629a29805681fde8d4b811.zip
*** empty log message ***
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-xinit-sh/level5.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 59dc413..0e458b7 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -103,10 +103,16 @@ echo -e "done.\n";
# /etc/profile
echo "Setting umask to 077 (u=rw) :"
AddRules "umask 077" /etc/profile
+
echo "Adding \"normal\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile quiet
AddRules "export PATH SECURE_LEVEL" /etc/profile
+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
+fi
+
# Do not boot on a shell
echo -n "Setting up inittab to deny any user to issue ctrl-alt-del : "
tmpfile=`mktemp /tmp/secure.XXXXXX`
@@ -144,3 +150,6 @@ grpconv
+
+
+