aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-11-08 15:26:57 +0000
committerFlorin Grad <florin@mandriva.com>2001-11-08 15:26:57 +0000
commit9089dfa0c0c0b3b42a95b60350160bd9b660e944 (patch)
treeb4536db7969df3d50886137b6951c3c3c158a176
parentfb5c28532ddf842a70dd01c0209562a621d26c9a (diff)
downloadmsec-9089dfa0c0c0b3b42a95b60350160bd9b660e944.tar
msec-9089dfa0c0c0b3b42a95b60350160bd9b660e944.tar.gz
msec-9089dfa0c0c0b3b42a95b60350160bd9b660e944.tar.bz2
msec-9089dfa0c0c0b3b42a95b60350160bd9b660e944.tar.xz
msec-9089dfa0c0c0b3b42a95b60350160bd9b660e944.zip
new entries for snf
-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
+