firewalld rich rule with log prefix adds single quotes

Solution Verified - Updated -

Issue

  • firewalld rich rule with log prefix adds single quotes
  • firewalld logs output differently on RHEL 7.9 than on RHEL 8.5. On RHEL 7.9 a firewalld rich-rule with a prefix that contains a space at the end logs single quote marks and RHEL 8.5 doesn't (as expected). Note the log prefix 'ACCEPT_IN ' with single quotes on RHEL 7:
RHEL 7:
Mon DD HH:MM:SS hostname kernel: 'ACCEPT_IN 'IN=ens192 OUT= MAC=...

RHEL 8:
Mon DD HH:MM:SS hostname kernel: ACCEPT_IN IN=ens192 OUT= MAC=...

Environment

  • Red Hat Enterprise Linux 7
  • firewalld firewall
  • rich firewall rules

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content