diff options
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-x | init-sh/level5.sh | 9 |
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 + + + |