aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-09-29 13:38:04 +0000
committerFlorin Grad <florin@mandriva.com>2001-09-29 13:38:04 +0000
commit0046e2c61539ad7bdda5ce11bccbf410a3839689 (patch)
tree5ff315215196090577c01416796da9f3671e738c
parent2552b07b701cd1bf7f8d227d6109e95c0bf72327 (diff)
downloadmsec-0046e2c61539ad7bdda5ce11bccbf410a3839689.tar
msec-0046e2c61539ad7bdda5ce11bccbf410a3839689.tar.gz
msec-0046e2c61539ad7bdda5ce11bccbf410a3839689.tar.bz2
msec-0046e2c61539ad7bdda5ce11bccbf410a3839689.tar.xz
msec-0046e2c61539ad7bdda5ce11bccbf410a3839689.zip
PATH modifs
-rwxr-xr-xinit-sh/level0.sh24
-rwxr-xr-xinit-sh/level1.sh24
-rwxr-xr-xinit-sh/level2.sh24
-rwxr-xr-xinit-sh/level3.sh24
-rwxr-xr-xinit-sh/level4.sh26
-rwxr-xr-xinit-sh/level5.sh26
6 files changed, 110 insertions, 38 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh
index 07c6126..ff6ff28 100755
--- a/init-sh/level0.sh
+++ b/init-sh/level0.sh
@@ -72,13 +72,25 @@ AddRules "umask 022" /etc/profile.d/msec.csh
echo "Adding \"non secure\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
# Xserver
echo "Allowing users to connect X server from everywhere :"
diff --git a/init-sh/level1.sh b/init-sh/level1.sh
index 14ce093..aa6ca1d 100755
--- a/init-sh/level1.sh
+++ b/init-sh/level1.sh
@@ -71,13 +71,25 @@ AddRules "umask 022" /etc/profile.d/msec.sh
AddRules "umask 022" /etc/profile.d/msec.csh
echo "Adding \"non secure\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
# Xserver
echo "Allowing users to connect X server from localhost :"
diff --git a/init-sh/level2.sh b/init-sh/level2.sh
index 4387907..9a2d9d5 100755
--- a/init-sh/level2.sh
+++ b/init-sh/level2.sh
@@ -72,13 +72,25 @@ AddRules "umask 022" /etc/profile.d/msec.sh
AddRules "umask 022" /etc/profile.d/msec.csh
echo "Adding \"non secure\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
# Xserver
echo "Allowing users to connect X server from localhost :"
diff --git a/init-sh/level3.sh b/init-sh/level3.sh
index 95980ed..d528b56 100755
--- a/init-sh/level3.sh
+++ b/init-sh/level3.sh
@@ -79,13 +79,25 @@ AddRules "umask 022" /etc/profile.d/msec.sh
AddRules "umask 022" /etc/profile.d/msec.csh
echo "Adding \"non secure\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
# Do not boot on a shell
AllowReboot
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 1ef093b..e822d3b 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -111,13 +111,25 @@ AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profil
AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.csh
echo "Adding \"normal\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
-
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
if [[ -f /lib/libsafe.so.1.3 ]]; then
echo "Enabling stack overflow protection :"
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 394bd86..b894ca1 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -121,13 +121,25 @@ AddRules "umask 077" /etc/profile.d/msec.sh
AddRules "umask 077" /etc/profile.d/msec.csh
echo "Adding \"normal\" PATH variable :"
-AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet
-AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet
-
-AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet
-AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
+
+AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet
+AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet
+AddRules "fi" /etc/profile.d/msec.sh quiet
+AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet
+AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet
+AddRules "endif" /etc/profile.d/msec.csh quiet
if [[ -f /lib/libsafe.so.1.3 ]]; then
echo "Enabling stack overflow protection :"