Bug 1393488 - firewall-cmd logs errors in absence of polkitd
Summary: firewall-cmd logs errors in absence of polkitd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-slip
Version: 7.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Charalampos Stratakis
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On:
Blocks: 1420851 1465891 1466363
TreeView+ depends on / blocked
 
Reported: 2016-11-09 16:37 UTC by jigar
Modified: 2022-04-19 13:28 UTC (History)
9 users (show)

Fixed In Version: python-slip-0.4.0-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 11:44:07 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0728 0 None None None 2018-04-10 11:44:18 UTC

Internal Links: 2076606

Description jigar 2016-11-09 16:37:09 UTC
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

Comment 5 Thomas Woerner 2017-05-15 16:49:45 UTC
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

Comment 16 errata-xmlrpc 2018-04-10 11:44:07 UTC
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

Comment 17 Mai Ling 2022-04-19 13:28:37 UTC
issue has been somehow propagated to EL8 where it still occurs.
filed https://bugzilla.redhat.com/show_bug.cgi?id=2076606


Note You need to log in before you can comment on or make changes to this bug.