From 7d9e61dc29a100a5073c230ced8d928f256a87e479b24cf0a1eb655eff5cb534 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Wed, 15 Jun 2011 21:48:27 +0000 Subject: [PATCH] add firewall service file for libvirt OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=126 --- libvirt.changes | 7 +++++++ libvirt.spec | 8 ++++++++ libvirtd-relocation-server.fw | 3 +++ 3 files changed, 18 insertions(+) create mode 100644 libvirtd-relocation-server.fw diff --git a/libvirt.changes b/libvirt.changes index 9bdbfe7..18a4fae 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 13 14:50:32 CST 2011 - lidongyang@novell.com + +- fate#311371 Enhance yast to configure live migration for + Xen and KVM + add firewall service file for libvirt + ------------------------------------------------------------------- Thu Jun 9 09:38:44 MDT 2011 - jfehlig@suse.de diff --git a/libvirt.spec b/libvirt.spec index cd156ae..1d48c83 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -170,6 +170,8 @@ %define with_network 0 %endif +%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services + BuildRequires: python-devel BuildRequires: libxml2-devel BuildRequires: xhtml-dtd @@ -342,6 +344,7 @@ Recommends: device-mapper Source0: %{name}-%{version}.tar.bz2 Source1: libvirtd.init +Source2: libvirtd-relocation-server.fw # Upstream patches # Need to go upstream Patch100: xen-name-for-devid.patch @@ -672,6 +675,10 @@ install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/init.d/libvirtd ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT%{_sbindir}/rclibvirtd %endif ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT%{_sbindir}/rclibvirt-guests +#install firewall definitions format is described here: +#/usr/share/SuSEfirewall2/services/TEMPLATE +mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir} +install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_fwdefdir}/libvirtd-relocation-server %clean rm -rf $RPM_BUILD_ROOT @@ -777,6 +784,7 @@ fi %attr(0755, root, root) %{_libdir}/%{name}/libvirt_iohelper %doc %{_mandir}/man8/libvirtd.8* %endif +%config %{_fwdefdir}/libvirtd-relocation-server %files client -f %{name}.lang %defattr(-, root, root) diff --git a/libvirtd-relocation-server.fw b/libvirtd-relocation-server.fw new file mode 100644 index 0000000..699b600 --- /dev/null +++ b/libvirtd-relocation-server.fw @@ -0,0 +1,3 @@ +## Name: Libvirtd Relocation Server +## Description: Enables libvirtd plain relocation service +TCP="49152:49215"