aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/msec13
1 files changed, 11 insertions, 2 deletions
diff --git a/init-sh/msec b/init-sh/msec
index 9ae7724..921f6cd 100755
--- a/init-sh/msec
+++ b/init-sh/msec
@@ -23,12 +23,20 @@ if [[ ${1} == custom ]]; then
fi
if [[ -f /usr/share/msec/level$1.sh ]]; then
- /usr/share/msec/level$1.sh
+ ln -sf /usr/share/msec/level$1.sh /usr/share/msec/current-level.sh
+ /usr/share/msec/current-level.sh
+ if [[ $1 == 4 || $1 == 5 || $1 == snf ]]; then
+ ln -sf /etc/security/msec/server.$1 /etc/security/msec/server
+ else
+ rm -rf /etc/security/msec/server
+ chkconfig --list |awk ' {print $1}' | grep -v ":" | sort -u > /etc/security/msec/server
+ fi
echo
echo "You might logout of your session for some change to be activated."
echo
if [[ -f /etc/security/msec/perm.$1 ]]; then
- /usr/share/msec/file_perm.sh /etc/security/msec/perm.$1
+ ln -sf /etc/security/msec/perm.$1 /etc/security/msec/current.perm
+ /usr/share/msec/file_perm.sh /etc/security/msec/current.perm
else
echo "Couldn't find the default permissions for level $1."
fi
@@ -36,3 +44,4 @@ else
echo "Security level $1 not availlable..."
fi
+