aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-11-08 16:23:36 +0000
committerFlorin Grad <florin@mandriva.com>2001-11-08 16:23:36 +0000
commitfbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975 (patch)
tree1d41c9f44c119c8292ac4d49ccc74de32f7bb59f
parent8aceb713d79c485acf1b5d5e77f1f5f3002d3a5d (diff)
downloadmsec-fbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975.tar
msec-fbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975.tar.gz
msec-fbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975.tar.bz2
msec-fbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975.tar.xz
msec-fbf2f77b0c4d48a3080b686b0b0aaa2bf7e00975.zip
update post section and modify the changelog
-rw-r--r--msec.spec26
1 files changed, 25 insertions, 1 deletions
diff --git a/msec.spec b/msec.spec
index f490b73..68ae4e2 100644
--- a/msec.spec
+++ b/msec.spec
@@ -1,7 +1,7 @@
Summary: Security Level & Program for the Mandrake Linux distribution
Name: msec
Version: 0.16
-Release: 1mdk
+Release: 2mdk
Url: http://www.linux-mandrake.com
Source0: %{name}-%{version}.tar.bz2
Source1: msec.logrotate
@@ -63,6 +63,24 @@ touch $RPM_BUILD_ROOT/var/log/security.log
%post
touch /var/log/security.log
+# create the /etc/security/msec/server
+# the /usr/share/msec/current-level.sh and
+# /etc/security/msec/current.perm files
+if [[ ${SECURE_LEVEL} == 4 || ${SECURE_LEVEL} == 5 || ${SECURE_LEVEL} == snf ]]; then
+ ln -sf /etc/security/msec/server.${SECURE_LEVEL} /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
+
+ln -sf /usr/share/msec/level${SECURE_LEVEL}.sh /usr/share/msec/current-level.sh
+echo
+echo "You might logout of your session for some change to be activated." echo
+
+if [[ -f /etc/security/msec/perm.${SECURE_LEVEL} ]]; then
+ ln -sf /etc/security/msec/perm.${SECURE_LEVEL} /etc/security/msec/current.perm
+ /usr/share/msec/file_perm.sh /etc/security/msec/current.perm
+if
%clean
rm -rf $RPM_BUILD_ROOT
@@ -87,6 +105,12 @@ rm -rf $RPM_BUILD_ROOT
# MAKE THE CHANGES IN CVS: NO PATCH OR SOURCE ALLOWED
%changelog
+* Thu Nov 08 2001 Florin <florin@mandrakesoft.com> 0.16-2mdk
+- oups forgot to create the needed links in post:
+- create the /etc/security/msec/server
+- the /usr/share/msec/current-level.sh and
+- /etc/security/msec/current.perm files
+
* Thu Nov 08 2001 Florin <florin@mandrakesoft.com> 0.16-1mdk
- 0.16
- add requires on chkconfig >= 1.2.24-3mdk