|
|
8072fb |
From 729936737ae3588d5b79c9f00760a2228586338b Mon Sep 17 00:00:00 2001
|
|
|
8072fb |
From: Eric Garver <eric@garver.life>
|
|
|
8072fb |
Date: Tue, 12 May 2020 08:25:07 -0400
|
|
|
8072fb |
Subject: [PATCH 24/45] test(dbus): better way to check IPv6_rpfilter expected
|
|
|
8072fb |
value
|
|
|
8072fb |
|
|
|
8072fb |
(cherry picked from commit 42e349f57a41305354871ca0c0d08fcf800a2fe3)
|
|
|
8072fb |
(cherry picked from commit a79695be7243802b49c5bdb131c231b1ef8a9350)
|
|
|
8072fb |
---
|
|
|
8072fb |
src/tests/dbus/firewalld.conf.at | 24 +++++++-----------------
|
|
|
8072fb |
1 file changed, 7 insertions(+), 17 deletions(-)
|
|
|
8072fb |
|
|
|
8072fb |
diff --git a/src/tests/dbus/firewalld.conf.at b/src/tests/dbus/firewalld.conf.at
|
|
|
8072fb |
index 4eefa3286f9f..1c957957b3da 100644
|
|
|
8072fb |
--- a/src/tests/dbus/firewalld.conf.at
|
|
|
8072fb |
+++ b/src/tests/dbus/firewalld.conf.at
|
|
|
8072fb |
@@ -1,8 +1,13 @@
|
|
|
8072fb |
FWD_START_TEST([firewalld.conf])
|
|
|
8072fb |
AT_KEYWORDS(dbus)
|
|
|
8072fb |
|
|
|
8072fb |
-dnl Verify defaults over dbus. Should be inline with default firewalld.conf.
|
|
|
8072fb |
IF_HOST_SUPPORTS_NFT_FIB([
|
|
|
8072fb |
+ EXPECTED_IPV6_RPFILTER_VALUE=yes
|
|
|
8072fb |
+], [
|
|
|
8072fb |
+ EXPECTED_IPV6_RPFILTER_VALUE=no
|
|
|
8072fb |
+])
|
|
|
8072fb |
+
|
|
|
8072fb |
+dnl Verify defaults over dbus. Should be inline with default firewalld.conf.
|
|
|
8072fb |
DBUS_GETALL([config], [config], 0, [dnl
|
|
|
8072fb |
string "AllowZoneDrifting" : variant string "yes"
|
|
|
8072fb |
string "AutomaticHelpers" : variant string "no"
|
|
|
8072fb |
@@ -10,28 +15,13 @@ string "CleanupOnExit" : variant string "no"
|
|
|
8072fb |
string "DefaultZone" : variant string "public"
|
|
|
8072fb |
string "FirewallBackend" : variant string "nftables"
|
|
|
8072fb |
string "FlushAllOnReload" : variant string "yes"
|
|
|
8072fb |
-string "IPv6_rpfilter" : variant string "yes"
|
|
|
8072fb |
-string "IndividualCalls" : variant string "no"
|
|
|
8072fb |
-string "Lockdown" : variant string "no"
|
|
|
8072fb |
-string "LogDenied" : variant string "off"
|
|
|
8072fb |
-string "MinimalMark" : variant int32 100
|
|
|
8072fb |
-string "RFC3964_IPv4" : variant string "yes"
|
|
|
8072fb |
-])], [
|
|
|
8072fb |
-DBUS_GETALL([config], [config], 0, [dnl
|
|
|
8072fb |
-string "AllowZoneDrifting" : variant string "yes"
|
|
|
8072fb |
-string "AutomaticHelpers" : variant string "no"
|
|
|
8072fb |
-string "CleanupOnExit" : variant string "no"
|
|
|
8072fb |
-string "DefaultZone" : variant string "public"
|
|
|
8072fb |
-string "FirewallBackend" : variant string "nftables"
|
|
|
8072fb |
-string "FlushAllOnReload" : variant string "yes"
|
|
|
8072fb |
-string "IPv6_rpfilter" : variant string "no"
|
|
|
8072fb |
+string "IPv6_rpfilter" : variant string m4_escape(["${EXPECTED_IPV6_RPFILTER_VALUE}"])
|
|
|
8072fb |
string "IndividualCalls" : variant string "no"
|
|
|
8072fb |
string "Lockdown" : variant string "no"
|
|
|
8072fb |
string "LogDenied" : variant string "off"
|
|
|
8072fb |
string "MinimalMark" : variant int32 100
|
|
|
8072fb |
string "RFC3964_IPv4" : variant string "yes"
|
|
|
8072fb |
])
|
|
|
8072fb |
-])
|
|
|
8072fb |
|
|
|
8072fb |
m4_define([_helper], [
|
|
|
8072fb |
DBUS_SET([config], [config], [string:"$1" $2], 0, ignore)
|
|
|
8072fb |
--
|
|
|
8072fb |
2.27.0
|
|
|
8072fb |
|