From 9089dfa0c0c0b3b42a95b60350160bd9b660e944 Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Thu, 8 Nov 2001 15:26:57 +0000 Subject: new entries for snf --- init-sh/msec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'init-sh') 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 + -- cgit v1.2.1