aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-10-03 12:55:52 +0000
committerFlorin Grad <florin@mandriva.com>2001-10-03 12:55:52 +0000
commit6650966c94a9089988a2c8bf36c861fdf27f37e7 (patch)
treea90b7e5fc5f949cf93937dfd1d54e3e369744ca0
parente8ccdd1f9c925cfc9db366ab821473c92bef9031 (diff)
downloadmsec-6650966c94a9089988a2c8bf36c861fdf27f37e7.tar
msec-6650966c94a9089988a2c8bf36c861fdf27f37e7.tar.gz
msec-6650966c94a9089988a2c8bf36c861fdf27f37e7.tar.bz2
msec-6650966c94a9089988a2c8bf36c861fdf27f37e7.tar.xz
msec-6650966c94a9089988a2c8bf36c861fdf27f37e7.zip
libsafe.so.2
-rw-r--r--ChangeLog4
-rwxr-xr-xinit-sh/level4.sh3
-rwxr-xr-xinit-sh/level5.sh3
-rw-r--r--msec.spec18
4 files changed, 20 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index ac1b526..b3fd4ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-03 14:45 florin
+
+ * init-sh/level*.sh: libsafe.so.2
+
2001-09-20 17:45 florin
* init-sh/level*.sh: use /etc/profile.d instead of /etc/profile
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 7889b7e..79be32b 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -110,8 +110,9 @@ echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :"
AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.sh
AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.csh
-if [[ -f /lib/libsafe.so.1.3 ]]; then
+if [[ -f /lib/libsafe.so.2 ]]; then
echo "Enabling stack overflow protection :"
+ touch /etc/ld.so.preload
AddRules "/lib/libsafe.so.2" /etc/ld.so.preload
fi
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 08517f6..a883b5e 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -120,8 +120,9 @@ echo "Setting umask to 077 (u=rw) :"
AddRules "umask 077" /etc/profile.d/msec.sh
AddRules "umask 077" /etc/profile.d/msec.csh
-if [[ -f /lib/libsafe.so.1.3 ]]; then
+if [[ -f /lib/libsafe.so.2]]; then
echo "Enabling stack overflow protection :"
+ touch /etc/ld.so.preload
AddRules "/lib/libsafe.so.2" /etc/ld.so.preload
fi
diff --git a/msec.spec b/msec.spec
index 99169d6..55ad073 100644
--- a/msec.spec
+++ b/msec.spec
@@ -3,8 +3,10 @@ Name: msec
Version: 0.15
Release: 30mdk
-Source: %{name}-%{version}.tar.bz2
-Source2: msec.logrotate
+Source0: %{name}-%{version}.tar.bz2
+Source1: msec.logrotate
+Source2: msec.sh
+Source3: msec.csh
License: GPL
Group: System/Base
@@ -52,8 +54,10 @@ done;
touch $RPM_BUILD_ROOT/etc/security/msec/security.conf $RPM_BUILD_ROOT/var/log/security.log
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
-install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/msec
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/{logrotate.d,profile.d}
+install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/msec
+install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
+install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
touch $RPM_BUILD_ROOT/var/log/security.log
%post
@@ -75,16 +79,18 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /var/log/security
%config(noreplace) /etc/security/msec
%config(noreplace) /etc/logrotate.d/msec
+%config(noreplace) /etc/profile.d/msec*
%ghost /var/log/security.log
# MAKE THE CHANGES IN CVS: NO PATCH OR SOURCE ALLOWED
%changelog
-* Sat Sep 29 2001 Florin <florin@mandrakesoft.com> 0.15-30mdk
+* Wed Oct 03 2001 Florin <florin@mandrakesoft.com> 0.15-30mdk
- more things from /etc/profile to /etc/profile.d/msec.{sh|csh}
-- remove the "or print" in the perl line in CleanRules
- update the doc path in the man pages
+- add the msec*sh sources
+- libsafe.so.2 in levels 4/5
* Thu Sep 20 2001 Florin <florin@mandrakesoft.com> 0.15-29mdk
- fix the /etc/profile.d/msec.{sh|csh} entries