diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-04-14 16:35:47 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-04-14 16:35:47 +0000 |
commit | ab99d20693624454a3deeefeb1f502cbb02a4e0f (patch) | |
tree | 820a1e92e2d0e3d7ad5960438a5df7093af7f44b /init-sh/custom.sh | |
parent | e29a077281f5a00c03931445293d2899e864f124 (diff) | |
download | msec-ab99d20693624454a3deeefeb1f502cbb02a4e0f.tar msec-ab99d20693624454a3deeefeb1f502cbb02a4e0f.tar.gz msec-ab99d20693624454a3deeefeb1f502cbb02a4e0f.tar.bz2 msec-ab99d20693624454a3deeefeb1f502cbb02a4e0f.tar.xz msec-ab99d20693624454a3deeefeb1f502cbb02a4e0f.zip |
*** empty log message ***
Diffstat (limited to 'init-sh/custom.sh')
-rwxr-xr-x | init-sh/custom.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh index 7cf7439..38f18cc 100755 --- a/init-sh/custom.sh +++ b/init-sh/custom.sh @@ -84,7 +84,8 @@ echo "this is done by searching in the stack frame the one which contain the" echo "destination address, and by substracting the frame address to the destination buffer one" WaitAnswer; clear if [[ ${answer} == yes ]]; then - 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 fi @@ -227,8 +228,10 @@ WaitAnswer; clear if [[ ${answer} == yes ]]; then export SECURE_LEVEL="4" AddRules "SECURE_LEVEL=\"4\"" /etc/profile + AddRules "SECURE_LEVEL=\"4\"" /etc/zprofile else AddRules "SECURE_LEVEL=\"3\"" /etc/profile + AddRules "SECURE_LEVEL=\"3\"" /etc/zprofile fi ### @@ -246,15 +249,19 @@ done case "${answer}" in "easy") AddRules "umask 002" /etc/profile + AddRules "umask 002" /etc/zprofile ;; "normal") AddRules "umask 022" /etc/profile + AddRules "umask 022" /etc/zprofile ;; "restricted") AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile + AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/zprofile ;; "paranoid") AddRules "umask 077" /etc/profile + AddRules "umask 077" /etc/zprofile ;; esac @@ -388,11 +395,15 @@ echo "However this is a *high* security risk." WaitAnswer; clear if [[ ${answer} == yes ]]; then AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile quiet + AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/zprofile quiet else AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet + AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/zprofile quiet fi AddRules "export PATH SECURE_LEVEL" /etc/profile +AddRules "export PATH SECURE_LEVEL" /etc/zprofile + |