diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-08 14:01:47 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-08 14:01:47 +0000 |
commit | f6b197970ba833ea3e629a29805681fde8d4b811 (patch) | |
tree | 55b4fa4ab2962a86b77f5338342d92ab21ebe70d /init-sh/level4.sh | |
parent | bac62ec2c6fc141a00acd131278befa0ba5f1c5a (diff) | |
download | msec-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/level4.sh')
-rwxr-xr-x | init-sh/level4.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/init-sh/level4.sh b/init-sh/level4.sh index 75a0e85..f10fb54 100755 --- a/init-sh/level4.sh +++ b/init-sh/level4.sh @@ -105,9 +105,15 @@ echo -e "done.\n"; # /etc/profile 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 + echo "Adding \"normal\" PATH variable :" AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet -AddRules "export PATH SECURE_LEVEL" /etc/profile +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 : " @@ -122,3 +128,8 @@ echo "done." # Group were modified in lib.sh... grpconv + + + + + |