- Fixed rich rule check for use in D-Bus

This commit is contained in:
Thomas Woerner 2013-06-07 13:06:32 +02:00
parent 09913dec88
commit 158ba25727
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,20 @@
commit f428939c42560ba3aad5c2bfa5b95bb8185d75ed
Author: Thomas Woerner <twoerner@redhat.com>
Date: Fri Jun 7 12:48:56 2013 +0200
Use Rich_Rule.check in _import_from_string
diff --git a/src/firewall/core/rich.py b/src/firewall/core/rich.py
index fd27914..a643d16 100644
--- a/src/firewall/core/rich.py
+++ b/src/firewall/core/rich.py
@@ -418,8 +418,7 @@ class Rich_Rule(object):
index = index + 1
- if not self.element:
- raise FirewallError(INVALID_RULE, "no element")
+ self.check()
def check(self):
if self.family != None and self.family not in [ "ipv4", "ipv6" ]:

View File

@ -1,7 +1,7 @@
Summary: A firewall daemon with D-BUS interface providing a dynamic firewall Summary: A firewall daemon with D-BUS interface providing a dynamic firewall
Name: firewalld Name: firewalld
Version: 0.3.3 Version: 0.3.3
Release: 1%{?dist} Release: 2%{?dist}
URL: http://fedorahosted.org/firewalld URL: http://fedorahosted.org/firewalld
License: GPLv2+ License: GPLv2+
ExclusiveOS: Linux ExclusiveOS: Linux
@ -11,6 +11,7 @@ Source0: https://fedorahosted.org/released/firewalld/%{name}-%{version}.tar.bz2
%if 0%{?fedora} > 17 %if 0%{?fedora} > 17
Patch0: firewalld-0.2.6-MDNS-default.patch Patch0: firewalld-0.2.6-MDNS-default.patch
%endif %endif
Patch1: firewalld-0.3.3-rich_rule_import.patch
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: gettext BuildRequires: gettext
BuildRequires: intltool BuildRequires: intltool
@ -75,6 +76,7 @@ firewalld.
%if 0%{?fedora} > 17 %if 0%{?fedora} > 17
%patch0 -p1 %patch0 -p1
%endif %endif
%patch1 -p1 -b .rich_rule_import
%build %build
%configure --enable-sysconfig %configure --enable-sysconfig
@ -194,6 +196,9 @@ fi
%{_datadir}/icons/hicolor/*/apps/firewall-config*.* %{_datadir}/icons/hicolor/*/apps/firewall-config*.*
%changelog %changelog
* Fri Jun 7 2013 Thomas Woerner <twoerner@redhat.com> 0.3.3-2
- Fixed rich rule check for use in D-Bus
* Thu Jun 6 2013 Thomas Woerner <twoerner@redhat.com> 0.3.3-1 * Thu Jun 6 2013 Thomas Woerner <twoerner@redhat.com> 0.3.3-1
- new service files - new service files
- relicensed logger.py under GPLv2+ - relicensed logger.py under GPLv2+