remove explicit Base version from libs

This commit is contained in:
Alasdair G Kergon 2010-07-31 15:22:29 +01:00
parent 9aa2ff4363
commit b5acf2d4b5
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,21 @@
--- LVM2.2.02.72/make.tmpl.in 2010-07-20 15:38:44.000000000 +0100
+++ LVM2.2.02.72-fix/make.tmpl.in 2010-07-31 15:16:55.000000000 +0100
@@ -366,7 +366,7 @@
) > $@
.export.sym: .exported_symbols_generated
- set -e; (echo "Base {"; echo " global:"; \
+ set -e; (echo "{"; echo " global:"; \
sed "s/^/ /;s/$$/;/" < $<; \
echo " local:"; echo " *;"; echo "};") > $@
--- LVM2.2.02.72/WHATS_NEW 2010-07-31 15:18:09.000000000 +0100
+++ LVM2.2.02.72-fix/WHATS_NEW 2010-07-31 15:20:22.000000000 +0100
@@ -1,3 +1,7 @@
+Version 2.02.73 -
+================================
+ Drop explicit 'Base' version from exported symbols.
+
Version 2.02.72 - 28th July 2010 [CVE-2010-2526]
=================================================
Change clvmd to communicate with lvm2 via a socket in /var/run/lvm.

View File

@ -22,6 +22,7 @@ Group: System Environment/Base
URL: http://sources.redhat.com/lvm2 URL: http://sources.redhat.com/lvm2
Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
Patch0: lvm2-set-default-preferred_names.patch Patch0: lvm2-set-default-preferred_names.patch
Patch1: lvm2-2_02_73-fix-exported-syms.patch
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
@ -50,6 +51,7 @@ or more physical volumes and creating one or more logical volumes
%prep %prep
%setup -q -n LVM2.%{version} %setup -q -n LVM2.%{version}
%patch0 -p1 -b preferred_names %patch0 -p1 -b preferred_names
%patch1 -p1 -b exported_syms
%build %build
%define _exec_prefix "" %define _exec_prefix ""
@ -439,11 +441,11 @@ the device-mapper event library.
%changelog %changelog
* Sat Jul 31 2010 Alasdair Kergon <agk@redhat.com> - 2.02.72-2 * Sat Jul 31 2010 Alasdair Kergon <agk@redhat.com> - 2.02.72-2
- Drop explicit Base version from exported symbols.
- Address lvm2-cluster security flaw CVE-2010-2526. - Address lvm2-cluster security flaw CVE-2010-2526.
https://bugzilla.redhat.com/CVE-2010-2526 https://bugzilla.redhat.com/CVE-2010-2526
- Change clvmd to communicate with lvm2 via a socket in /var/run/lvm. - Change clvmd to communicate with lvm2 via a socket in /var/run/lvm.
- Return controlled error if clvmd is run by non-root user. - Return controlled error if clvmd is run by non-root user.
- Add configure --default-run-dir for /var/run/lvm.
- Never use clvmd singlenode unless explicitly requested with -Isinglenode. - Never use clvmd singlenode unless explicitly requested with -Isinglenode.
* Wed Jul 28 2010 Alasdair Kergon <agk@redhat.com> - 2.02.71-1 * Wed Jul 28 2010 Alasdair Kergon <agk@redhat.com> - 2.02.71-1