aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 16:30:19 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 16:30:19 +0000
commit7ee5ce2586bdd320ad2c70d58b23af9f771ae57f (patch)
tree79fc10574cc5922ebea94ac8d02a1ee142806496 /init-sh/lib.sh
parent5f7a190f91beac8a3c1363242799d3566d27a57f (diff)
downloadmsec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.gz
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.bz2
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.tar.xz
msec-7ee5ce2586bdd320ad2c70d58b23af9f771ae57f.zip
*** empty log message ***
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r--init-sh/lib.sh30
1 files changed, 16 insertions, 14 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index ec5e2dd..47bbcec 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -9,19 +9,6 @@ if [ $UID != 0 ]; then
exit 1
fi
-# To avoid error, while new initscript package isn't released...
-touch /etc/rc.d/rc.firewall
-
-# If we are currently installing our
-# system with DrakX, we don't ask anything to the user...
-# Instead, DrakX do it and give us a file with some variable.
-if [ -f /tmp/secure.DrakX ]; then
- . /tmp/secure.DrakX
-fi
-
-if [ -f /etc/security/msec/security.conf ]; then
- . /etc/security/msec/security.conf
-fi
COMMENT="# Mandrake-Security : if you remove this comment, remove the next line too."
@@ -149,6 +136,21 @@ LiloUpdate() {
fi
}
+# If we are currently installing our
+# system with DrakX, we don't ask anything to the user...
+# Instead, DrakX do it and give us a file with some variable.
+if [ -f /tmp/secure.DrakX ]; then
+ . /tmp/secure.DrakX
+ AddRules "${DRAKX_USERS}" /etc/security/msec/security.conf
+fi
+
+if [ -f /etc/security/msec/security.conf ]; then
+ . /etc/security/msec/security.conf
+fi
+
+# To avoid error, while new initscript package isn't released...
+touch /etc/rc.d/rc.firewall
+
clear
echo "Preparing to run security script : "
CleanRules /etc/syslog.conf
@@ -180,7 +182,7 @@ usermod -G xgrp xfs
# so we delete ( temporarily ) audio user.
if [ ! -f /tmp/secure.DrakX ]; then
- for user in ${USERS_DRAKX}; do
+ for user in ${DRAKX_USERS}; do
if ! /etc/security/msec/init-sh/grpuser --del audio "${user}"; then
echo "Problem removing user \"${user}\" from group audio."
fi