Red Hat Bugzilla – Bug 1393488
firewall-cmd logs errors in absence of polkitd
Last modified: 2018-04-10 07:44:18 EDT
Description of problem: firewall-cmd commands log errors in /var/log/messages in absence of polkitd : Nov 2 17:46:06 localhost dbus-daemon: dbus[608]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.3" (uid=0 pid=618 comm="/usr/bin/python -Es /usr/sbin/firewalld --nofork -") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.8" (uid=0 pid=2408 comm="/usr/bin/python -Es /usr/bin/firewall-cmd --list-a") firewalld does not have a dependency on polkitd, so in absence of polkitd , errors should not be logged when running commands as root. Version-Release number of selected component (if applicable): firewalld-0.4.3.2-8.el7 How reproducible: Always Steps to Reproduce: 1. On RHEL 7, remove polkitd ( if installed ) 2. Run following firewalld command as root/sudo : $ firewall-cmd --list-all 3. Check /var/log/messages Actual results: dbus error messages are logged in /var/log/messages Expected results: Either polkitd should be a dependency of firewalld or the error messages should not appear in absence of polkitd
This is a python-slip issue. Here is the upstream pull request for the fix: https://github.com/nphilipp/python-slip/pull/4 Here is the proposed fix: https://github.com/t-woerner/python-slip/commit/7ad888e7f92ea3fd6b5c003f3fd7b540d913045e
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0728