aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-post
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-06-06 19:19:11 +0200
committerDee'Kej <deekej@linuxmail.org>2018-06-07 14:26:23 +0200
commitd951e7c7d64c0378424b8b2edd406ae9eaa73ec1 (patch)
treeb7b5a95764a14af33e911f7cf0117660ee9785c3 /sysconfig/network-scripts/ifdown-post
parentf3f0714bb3a8696e61fcbbd3e6330de642f1da9b (diff)
downloadinitscripts-d951e7c7d64c0378424b8b2edd406ae9eaa73ec1.tar
initscripts-d951e7c7d64c0378424b8b2edd406ae9eaa73ec1.tar.gz
initscripts-d951e7c7d64c0378424b8b2edd406ae9eaa73ec1.tar.bz2
initscripts-d951e7c7d64c0378424b8b2edd406ae9eaa73ec1.tar.xz
initscripts-d951e7c7d64c0378424b8b2edd406ae9eaa73ec1.zip
network-scripts: setting of firewall ZONE fixed
For currently unknown reason the dbus-send calls will fail to set the firewall zone for the given interface if we omit the --print-reply option... This looks like some kind of race-condition in dbus-send, since the --print-reply makes the call synchronous and slower. Hopefully this is only a temporary workaround until DBus is fixed. Resolves: #1586284
Diffstat (limited to 'sysconfig/network-scripts/ifdown-post')
-rwxr-xr-xsysconfig/network-scripts/ifdown-post4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index 9db16ad3..48a57ae4 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -53,9 +53,9 @@ if ! check_default_route ; then
fi
fi
-# Reset firewall ZONE to "default":
+# Reset firewall zone (empty ZONE means default):
if [ "${REALDEVICE}" != "lo" ]; then
- dbus-send --system --dest=org.fedoraproject.FirewallD1 \
+ dbus-send --print-reply --system --dest=org.fedoraproject.FirewallD1 \
/org/fedoraproject/FirewallD1 \
org.fedoraproject.FirewallD1.zone.removeInterface \
string: "" string:"${DEVICE}" \