Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2076606

Summary: firewall-cmd logs errors in absence of polkitd
Product: Red Hat Enterprise Linux 8 Reporter: Mai Ling <mailinglists35>
Component: python-slipAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: cstratak, egarver, todoleza
Target Milestone: rcKeywords: Triaged, Upstream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-slip-0.6.4-12.el8 Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:46:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mai Ling 2022-04-19 13:27:11 UTC
Description of problem:
this is effectively https://bugzilla.redhat.com/show_bug.cgi?id=1393488 but on EL8

Version-Release number of selected component (if applicable):


How reproducible:
see https://bugzilla.redhat.com/show_bug.cgi?id=1393488

Steps to Reproduce:
1. see https://bugzilla.redhat.com/show_bug.cgi?id=1393488
2.
3.

Actual results:


Expected results:


Additional info:

I rent a low-budget low-resources vps loaded with an EL8 clone therefore I remove and disable anything that results in less memory and disk consumption. polkit is one of the hungry resources that I don't need.

pasted results before and after removing polkit. reproductible on latest official free developer EL8 iso, up to date.

This is not reproductible on EL9 beta; removing polkit has no negative effect on dbus logs.

[username@localhost ~]$ sudo firewall-cmd --list-all
Apr 19 16:01:40 localhost.localdomain sudo[14989]:    username : TTY=pts/0 ; PWD=/home/username ; USER=root ; COMMAND=/bin/firewall-cmd --list-all
Apr 19 16:01:40 localhost.localdomain sudo[14989]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
Apr 19 16:01:40 localhost.localdomain sudo[14989]: pam_unix(sudo:session): session opened for user root by username(uid=0)
Apr 19 16:01:40 localhost.localdomain dbus-daemon[989]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.7' (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0")
Apr 19 16:01:40 localhost.localdomain systemd[1]: Starting Authorization Manager...
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens160
  sources:
  services: cockpit dhcpv6-client ssh
  ports:
  protocols:
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
[username@localhost ~]$ Apr 19 16:01:40 localhost.localdomain polkitd[14992]: Started polkitd version 0.115
Apr 19 16:01:40 localhost.localdomain polkitd[14992]: Loading rules from directory /etc/polkit-1/rules.d
Apr 19 16:01:40 localhost.localdomain polkitd[14992]: Loading rules from directory /usr/share/polkit-1/rules.d
Apr 19 16:01:40 localhost.localdomain polkitd[14992]: Finished loading, compiling and executing 2 rules
Apr 19 16:01:40 localhost.localdomain dbus-daemon[989]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Apr 19 16:01:40 localhost.localdomain systemd[1]: Started Authorization Manager.
Apr 19 16:01:40 localhost.localdomain polkitd[14992]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Apr 19 16:01:40 localhost.localdomain sudo[14989]: pam_unix(sudo:session): session closed for user root

____________________________________

[username@localhost ~]$ sudo firewall-cmd --list-all
Apr 19 16:02:42 localhost.localdomain sudo[15384]:    username : TTY=pts/0 ; PWD=/home/username ; USER=root ; COMMAND=/bin/firewall-cmd --list-all
Apr 19 16:02:42 localhost.localdomain sudo[15384]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
Apr 19 16:02:42 localhost.localdomain sudo[15384]: pam_unix(sudo:session): session opened for user root by username(uid=0)
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens160
  sources:
  services: cockpit dhcpv6-client ssh
  ports:
  protocols:
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
[username@localhost ~]$ Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain dbus-daemon[989]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.7" (uid=0 pid=1032 comm="/usr/libexec/platform-python -s /usr/sbin/firewall" label="system_u:system_r:firewalld_t:s0") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.126" (uid=0 pid=15386 comm="/usr/libexec/platform-python -s /bin/firewall-cmd " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Apr 19 16:02:42 localhost.localdomain sudo[15384]: pam_unix(sudo:session): session closed for user root

Comment 1 Eric Garver 2022-04-21 13:20:27 UTC
Based on bug 1393488, this is actually a bug in python-slip.

It was fixed in commit fed1b05a1719 ("Fix org.freedesktop.DBus.Error.ServiceUnknown errors without polkitd"), but that commit was never part of any official python-slip release. As such the fix did not propagate to RHEL-8.

RHEL-9 is NOT affected because the python-slip dependency was dropped in firewalld v1.0.0.

Comment 13 errata-xmlrpc 2022-11-08 10:46:36 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 (python-slip bug fix and enhancement update), 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-2022:7703