Repository : http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
>---------------------------------------------------------------
commit f5d33959d4dfeb0ea78088f67a8a488256bee8bb
Author: Daniel Kopecek <dkopecek(a)redhat.com>
Date: Fri Dec 5 11:06:19 2014 +0100
Add FirewallObject, ZoneObject classes
- FirewallObject is a base class of all firewall objects
(stores the firewall object type)
- ZoneObject is for associating a firewall object with a
zone object
>---------------------------------------------------------------
Makefile.am | 4 +-
.../MasqueradeRule.hpp => FirewallObject.hpp} | 26 +++++--
src/Daemon/Firewall/ZoneObject.hpp | 68 ++++++++++++++++++++
3 files changed, 89 insertions(+), 9 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index d1a210b..8cc66d4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -85,7 +85,9 @@ libfirewall_la_SOURCES=\
src/Daemon/Firewall/Transaction.cpp \
src/Daemon/Firewall/Transaction.hpp \
src/Daemon/Firewall/Zone.cpp \
- src/Daemon/Firewall/Zone.hpp
+ src/Daemon/Firewall/Zone.hpp \
+ src/Daemon/Firewall/FirewallObject.hpp \
+ src/Daemon/Firewall/ZoneObject.hpp
libfirewall_la_LIBADD=\
$(top_builddir)/libbackends.la
diff --git a/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp b/src/Daemon/Firewall/FirewallObject.hpp
similarity index 67%
copy from src/Daemon/Firewall/RichRules/MasqueradeRule.hpp
copy to src/Daemon/Firewall/FirewallObject.hpp
index 7c4f005..25b216b 100644
--- a/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp
+++ b/src/Daemon/Firewall/FirewallObject.hpp
@@ -16,19 +16,29 @@
//
// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
//
-#ifndef FIREWALLD_FIREWALL_MASQUERADERULE_HPP
-#define FIREWALLD_FIREWALL_MASQUERADERULE_HPP
-
-#include "Daemon/Firewall/RichRule.hpp"
+#ifndef FIREWALLD_FIREWALLOBJECT_HPP
+#define FIREWALLD_FIREWALLOBJECT_HPP
namespace firewalld
{
- class MasqueradeRule : public RichRule
+ class FirewallObject
{
public:
- MasqueradeRule(RichRuleParser::RuleData& data);
- void addToTransaction(Pointer<Transaction> transaction) const {}
+ typedef const UString AnnotationType;
+
+ FirewallObject(AnnotationType object_type)
+ : _object_type(object_type)
+ {}
+
+ AnnotationType objectType() const
+ {
+ return _object_type;
+ }
+
+ private:
+ AnnotationType _object_type;
};
+
} /* namespace firewalld */
-#endif /* FIREWALLD_FIREWALL_MASQUERADERULE_HPP */
+#endif /* FIREWALLD_FIREWALLOBJECT_HPP */
diff --git a/src/Daemon/Firewall/ZoneObject.hpp b/src/Daemon/Firewall/ZoneObject.hpp
new file mode 100644
index 0000000..569f81f
--- /dev/null
+++ b/src/Daemon/Firewall/ZoneObject.hpp
@@ -0,0 +1,68 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
+#ifndef FIREWALLD_FIREWALL_ZONEOBJECT_HPP
+#define FIREWALLD_FIREWALL_ZONEOBJECT_HPP
+
+#include "Daemon/Firewall/FirewallObject.hpp"
+
+namespace firewalld
+{
+ class Zone;
+
+ class ZoneObject : public FirewallObject
+ {
+ public:
+ ZoneObject(Pointer<Zone> zone, Pointer<FirewallObject> object)
+ : FirewallObject("ZoneObject")
+ {
+ _zone = zone;
+ _object = object;
+ }
+
+ ZoneObject(const ZoneObject& zone_object)
+ : FirewallObject("ZoneObject")
+ {
+ _zone = zone_object._zone;
+ _object = zone_object._object;
+ }
+
+ Pointer<Zone> getZone() const
+ {
+ return _zone;
+ }
+
+ FirewallObject::AnnotationType getObjectType() const
+ {
+ return _object->objectType();
+ }
+
+ template<class T>
+ const T& getObjectRef() const
+ {
+ return *std::static_pointer_cast<const T>(_object);
+ }
+
+ private:
+ Pointer<Zone> _zone;
+ Pointer<FirewallObject> _object;
+ };
+
+} /* namespace firewalld */
+
+#endif /* FIREWALLD_FIREWALL_ZONEOBJECT_HPP */
Repository : http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
>---------------------------------------------------------------
commit 0ae2b25223bb573304bfc3095bea30d49e1dee4b
Author: Thomas Woerner <twoerner(a)redhat.com>
Date: Mon Dec 1 13:55:15 2014 +0100
New libfirewall (early version)
Missing items:
- Parts of the direct interface
- Policies interface
- Config interface
- Callback support for signals
>---------------------------------------------------------------
Diff suppressed because of size. To see it, use:
git diff --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol ^0ae2b25223bb573304bfc3095bea30d49e1dee4b~1 0ae2b25223bb573304bfc3095bea30d49e1dee4b
Repository : http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
>---------------------------------------------------------------
commit 982508dc33d429dbc1d43be9acd9d50af1d190d9
Author: Daniel Kopecek <dkopecek(a)redhat.com>
Date: Wed Nov 26 14:45:47 2014 +0100
Add missing copyrights
>---------------------------------------------------------------
src/Daemon/Backends/LinuxXTables.cpp | 18 ++++++++++++++++++
src/Daemon/Backends/LinuxXTables.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/BackendOpTable.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/IPAddress.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/IPAddress.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRuleParser.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRuleParser.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ForwardPortRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ForwardPortRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ICMPBlockRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ICMPBlockRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/MasqueradeRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/MasqueradeRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/PortRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/PortRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ProtocolRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ProtocolRule.hpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ServiceRule.cpp | 18 ++++++++++++++++++
src/Daemon/Firewall/RichRules/ServiceRule.hpp | 18 ++++++++++++++++++
21 files changed, 378 insertions(+), 0 deletions(-)
diff --git a/src/Daemon/Backends/LinuxXTables.cpp b/src/Daemon/Backends/LinuxXTables.cpp
index 8f57893..0238a1a 100644
--- a/src/Daemon/Backends/LinuxXTables.cpp
+++ b/src/Daemon/Backends/LinuxXTables.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "LinuxXTables.hpp"
#include "Common/Types.hpp"
#include "Common/Logging.hpp"
diff --git a/src/Daemon/Backends/LinuxXTables.hpp b/src/Daemon/Backends/LinuxXTables.hpp
index 4abc9ab..423d840 100644
--- a/src/Daemon/Backends/LinuxXTables.hpp
+++ b/src/Daemon/Backends/LinuxXTables.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_BACKENDS_LINUXXTABLES_HPP
#define FIREWALLD_BACKENDS_LINUXXTABLES_HPP
diff --git a/src/Daemon/Firewall/BackendOpTable.hpp b/src/Daemon/Firewall/BackendOpTable.hpp
index 97bb6a8..0f07976 100644
--- a/src/Daemon/Firewall/BackendOpTable.hpp
+++ b/src/Daemon/Firewall/BackendOpTable.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_BACKENDOPTABLE_HPP
#define FIREWALLD_FIREWALL_BACKENDOPTABLE_HPP
diff --git a/src/Daemon/Firewall/IPAddress.cpp b/src/Daemon/Firewall/IPAddress.cpp
index ed64bf6..442f210 100644
--- a/src/Daemon/Firewall/IPAddress.cpp
+++ b/src/Daemon/Firewall/IPAddress.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "Common/Types.hpp"
#include "Common/Utility.hpp"
#include "IPAddress.hpp"
diff --git a/src/Daemon/Firewall/IPAddress.hpp b/src/Daemon/Firewall/IPAddress.hpp
index 7b6e5f2..1c4bb72 100644
--- a/src/Daemon/Firewall/IPAddress.hpp
+++ b/src/Daemon/Firewall/IPAddress.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_IPADDRESS_HPP
#define FIREWALLD_FIREWALL_IPADDRESS_HPP
diff --git a/src/Daemon/Firewall/RichRule.cpp b/src/Daemon/Firewall/RichRule.cpp
index 06a947a..3b990e6 100644
--- a/src/Daemon/Firewall/RichRule.cpp
+++ b/src/Daemon/Firewall/RichRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "RichRule.hpp"
#include "Common/Logging.hpp"
#include <stdexcept>
diff --git a/src/Daemon/Firewall/RichRule.hpp b/src/Daemon/Firewall/RichRule.hpp
index 11f3c42..1e55ecb 100644
--- a/src/Daemon/Firewall/RichRule.hpp
+++ b/src/Daemon/Firewall/RichRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_RICHRULE_HPP
#define FIREWALLD_FIREWALL_RICHRULE_HPP
diff --git a/src/Daemon/Firewall/RichRuleParser.cpp b/src/Daemon/Firewall/RichRuleParser.cpp
index 4ecb845..fb5da96 100644
--- a/src/Daemon/Firewall/RichRuleParser.cpp
+++ b/src/Daemon/Firewall/RichRuleParser.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "RichRuleParser.hpp"
#include "RichRule.hpp"
diff --git a/src/Daemon/Firewall/RichRuleParser.hpp b/src/Daemon/Firewall/RichRuleParser.hpp
index ed04d60..29fedd9 100644
--- a/src/Daemon/Firewall/RichRuleParser.hpp
+++ b/src/Daemon/Firewall/RichRuleParser.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_RICHRULEPARSER_HPP
#define FIREWALLD_FIREWALL_RICHRULEPARSER_HPP
diff --git a/src/Daemon/Firewall/RichRules/ForwardPortRule.cpp b/src/Daemon/Firewall/RichRules/ForwardPortRule.cpp
index 2b7ff66..7a755ec 100644
--- a/src/Daemon/Firewall/RichRules/ForwardPortRule.cpp
+++ b/src/Daemon/Firewall/RichRules/ForwardPortRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "ForwardPortRule.hpp"
namespace firewalld
diff --git a/src/Daemon/Firewall/RichRules/ForwardPortRule.hpp b/src/Daemon/Firewall/RichRules/ForwardPortRule.hpp
index 2f7913e..e1af161 100644
--- a/src/Daemon/Firewall/RichRules/ForwardPortRule.hpp
+++ b/src/Daemon/Firewall/RichRules/ForwardPortRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_FORWARDPORTRULE_HPP
#define FIREWALLD_FIREWALL_FORWARDPORTRULE_HPP
diff --git a/src/Daemon/Firewall/RichRules/ICMPBlockRule.cpp b/src/Daemon/Firewall/RichRules/ICMPBlockRule.cpp
index 9f5063d..084ace7 100644
--- a/src/Daemon/Firewall/RichRules/ICMPBlockRule.cpp
+++ b/src/Daemon/Firewall/RichRules/ICMPBlockRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "ICMPBlockRule.hpp"
#include "Daemon/FirewallD.hpp"
diff --git a/src/Daemon/Firewall/RichRules/ICMPBlockRule.hpp b/src/Daemon/Firewall/RichRules/ICMPBlockRule.hpp
index 8cc6f00..667ecbf 100644
--- a/src/Daemon/Firewall/RichRules/ICMPBlockRule.hpp
+++ b/src/Daemon/Firewall/RichRules/ICMPBlockRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_ICMPBLOCKRULE_HPP
#define FIREWALLD_FIREWALL_ICMPBLOCKRULE_HPP
diff --git a/src/Daemon/Firewall/RichRules/MasqueradeRule.cpp b/src/Daemon/Firewall/RichRules/MasqueradeRule.cpp
index e8a21c4..5837a2b 100644
--- a/src/Daemon/Firewall/RichRules/MasqueradeRule.cpp
+++ b/src/Daemon/Firewall/RichRules/MasqueradeRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "MasqueradeRule.hpp"
namespace firewalld
diff --git a/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp b/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp
index 7cd6348..7c4f005 100644
--- a/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp
+++ b/src/Daemon/Firewall/RichRules/MasqueradeRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_MASQUERADERULE_HPP
#define FIREWALLD_FIREWALL_MASQUERADERULE_HPP
diff --git a/src/Daemon/Firewall/RichRules/PortRule.cpp b/src/Daemon/Firewall/RichRules/PortRule.cpp
index 8e58d92..9418e2f 100644
--- a/src/Daemon/Firewall/RichRules/PortRule.cpp
+++ b/src/Daemon/Firewall/RichRules/PortRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "PortRule.hpp"
namespace firewalld
diff --git a/src/Daemon/Firewall/RichRules/PortRule.hpp b/src/Daemon/Firewall/RichRules/PortRule.hpp
index b819d1b..291c624 100644
--- a/src/Daemon/Firewall/RichRules/PortRule.hpp
+++ b/src/Daemon/Firewall/RichRules/PortRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_PORTRULE_HPP
#define FIREWALLD_FIREWALL_PORTRULE_HPP
diff --git a/src/Daemon/Firewall/RichRules/ProtocolRule.cpp b/src/Daemon/Firewall/RichRules/ProtocolRule.cpp
index 9e9d067..69ee634 100644
--- a/src/Daemon/Firewall/RichRules/ProtocolRule.cpp
+++ b/src/Daemon/Firewall/RichRules/ProtocolRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "ProtocolRule.hpp"
#include "Common/Utility.hpp"
#include <netdb.h>
diff --git a/src/Daemon/Firewall/RichRules/ProtocolRule.hpp b/src/Daemon/Firewall/RichRules/ProtocolRule.hpp
index 124d2f8..73baad3 100644
--- a/src/Daemon/Firewall/RichRules/ProtocolRule.hpp
+++ b/src/Daemon/Firewall/RichRules/ProtocolRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_PROTOCOLRULE_HPP
#define FIREWALLD_FIREWALL_PROTOCOLRULE_HPP
diff --git a/src/Daemon/Firewall/RichRules/ServiceRule.cpp b/src/Daemon/Firewall/RichRules/ServiceRule.cpp
index e7f93e4..42c1330 100644
--- a/src/Daemon/Firewall/RichRules/ServiceRule.cpp
+++ b/src/Daemon/Firewall/RichRules/ServiceRule.cpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#include "ServiceRule.hpp"
#include "Daemon/FirewallD.hpp"
diff --git a/src/Daemon/Firewall/RichRules/ServiceRule.hpp b/src/Daemon/Firewall/RichRules/ServiceRule.hpp
index 0875397..3dc8b5e 100644
--- a/src/Daemon/Firewall/RichRules/ServiceRule.hpp
+++ b/src/Daemon/Firewall/RichRules/ServiceRule.hpp
@@ -1,3 +1,21 @@
+//
+// Copyright (C) 2014 Red Hat, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Authors: Daniel Kopecek <dkopecek(a)redhat.com>
+//
#ifndef FIREWALLD_FIREWALL_SERVICERULE_HPP
#define FIREWALLD_FIREWALL_SERVICERULE_HPP