[libvirt/f18] Rebased to version 0.10.2.2 CVE-2012-3411: avoid open DNS proxy with dnsmasq (bz #874702, bz #882309

Cole Robinson crobinso at fedoraproject.org
Mon Dec 10 00:29:13 UTC 2012


commit 5e3f148cab3b78056dd85a5c236cef5ae146706b
Author: Cole Robinson <crobinso at redhat.com>
Date:   Sun Dec 9 19:29:03 2012 -0500

    Rebased to version 0.10.2.2
    CVE-2012-3411: avoid open DNS proxy with dnsmasq (bz #874702, bz #882309)
    Don't ignore address for USB disks (bz #861309)
    Fix error with blkdeviotune (bz #872582)
    Fix cloning LVM volume (bz #869607)
    Fix VDSM error when libvirt doesn't format CPU topology (bz #876475)
    Use systemd macros in spec file (bz #850186)

 libvirt.spec |   45 +++++++++++++++++++++++++++++++++++++++++----
 sources      |    2 +-
 2 files changed, 42 insertions(+), 5 deletions(-)
---
diff --git a/libvirt.spec b/libvirt.spec
index c4847f9..a5a21c3 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -323,10 +323,17 @@
 %define with_rhel5  0
 %endif
 
+%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
+%define with_systemd_macros 1
+%else
+%define with_systemd_macros 0
+%endif
+
+
 Summary: Library providing a simple virtualization API
 Name: libvirt
-Version: 0.10.2.1
-Release: 4%{?dist}%{?extra_release}
+Version: 0.10.2.2
+Release: 1%{?dist}%{?extra_release}
 License: LGPLv2+
 Group: Development/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -342,10 +349,11 @@ Patch1: 0001-Use-qemu-system-i386-as-binary-instead-of-qemu.patch
 # Cleanly save session VMs on logout/shutdown (bz 872254)
 # keep: Fixed upstream, but using patches not suitable for stable
 Patch2: libvirt-dbus.patch
+# Cleanly save session VMs on logout/shutdown (bz 872254)
+# keep: Fixed upstream, but using patches not suitable for stable
 Patch3: libvirt-save-with-session.patch
 
 
-
 %if %{with_libvirtd}
 Requires: libvirt-daemon = %{version}-%{release}
 %if %{with_network}
@@ -1468,11 +1476,14 @@ done
 %endif
 
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_post libvirtd.service
+%else
 if [ $1 -eq 1 ] ; then
     # Initial installation
     /bin/systemctl enable libvirtd.service >/dev/null 2>&1 || :
-    /bin/systemctl enable cgconfig.service >/dev/null 2>&1 || :
 fi
+%endif
 %else
 %if %{with_cgconfig}
 # Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
@@ -1492,11 +1503,15 @@ fi
 
 %preun daemon
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_preun libvirtd.service
+%else
 if [ $1 -eq 0 ] ; then
     # Package removal, not upgrade
     /bin/systemctl --no-reload disable libvirtd.service > /dev/null 2>&1 || :
     /bin/systemctl stop libvirtd.service > /dev/null 2>&1 || :
 fi
+%endif
 %else
 if [ $1 = 0 ]; then
     /sbin/service libvirtd stop 1>/dev/null 2>&1
@@ -1506,12 +1521,16 @@ fi
 
 %postun daemon
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_postun_with_restart libvirtd.service
+%else
 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
 if [ $1 -ge 1 ] ; then
     # Package upgrade, not uninstall
     /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
 fi
 %endif
+%endif
 
 %if %{with_network}
 %post daemon-config-network
@@ -1542,6 +1561,9 @@ fi
 %preun client
 
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_preun libvirt-guests.service
+%endif
 %else
 if [ $1 = 0 ]; then
     /sbin/chkconfig --del libvirt-guests
@@ -1553,6 +1575,9 @@ fi
 
 /sbin/ldconfig
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_post libvirt-guests.service
+%endif
 %else
 /sbin/chkconfig --add libvirt-guests
 %endif
@@ -1560,6 +1585,9 @@ fi
 %postun client -p /sbin/ldconfig
 
 %if %{with_systemd}
+%if %{with_systemd_macros}
+%systemd_postun_with_restart libvirt-guests.service
+%endif
 %triggerun client -- libvirt < 0.9.4
 %{_bindir}/systemd-sysv-convert --save libvirt-guests >/dev/null 2>&1 ||:
 
@@ -1915,6 +1943,15 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sysctl.d/libvirtd
 %endif
 
 %changelog
+* Sun Dec 09 2012 Cole Robinson <crobinso at redhat.com> - 0.10.2.2-1
+- Rebased to version 0.10.2.2
+- CVE-2012-3411: avoid open DNS proxy with dnsmasq (bz #874702, bz #882309)
+- Don't ignore address for USB disks (bz #861309)
+- Fix error with blkdeviotune (bz #872582)
+- Fix cloning LVM volume (bz #869607)
+- Fix VDSM error when libvirt doesn't format CPU topology (bz #876475)
+- Use systemd macros in spec file (bz #850186)
+
 * Thu Dec 06 2012 Cole Robinson <crobinso at redhat.com> - 0.10.2.1-4
 - Add ppc64 and s390x as KVM arches for Fedora >= 18 (bz #872545)
 
diff --git a/sources b/sources
index 1543a73..99be95a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c090c8abc89653456e3342f9aa9f18fe  libvirt-0.10.2.1.tar.gz
+940e42fe5b098eae8eec695d716be712  libvirt-0.10.2.2.tar.gz


More information about the scm-commits mailing list