Bug 1459927 - rich rules are only syntax-checked, invalid rules are silently unapplied
rich rules are only syntax-checked, invalid rules are silently unapplied
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: firewalld (Show other bugs)
7.4
Unspecified Unspecified
medium Severity high
: rc
: ---
Assigned To: Eric Garver
qe-baseos-daemons
:
Depends On:
Blocks: 1472751
  Show dependency treegraph
 
Reported: 2017-06-08 11:12 EDT by Tomas Dolezal
Modified: 2017-08-03 03:19 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tomas Dolezal 2017-06-08 11:12:00 EDT
Description of problem:
firewall-cmd --add-rich-rule 'rule service name=rainbowpony log'
The error is printed solely in syslog as
WARNING: INVALID_SERVICE: rainbowpony
this information is very useful for admin to see in the moment of rule creation

Version-Release number of selected component (if applicable):
firewalld-0.4.4.4-5.el7.noarch

How reproducible:
always

Steps to Reproduce:
firewall-cmd --add-rich-rule 'rule service name=rainbowpony log'


Actual results:
"success" is printed out

Expected results:
this output:
WARNING: INVALID_SERVICE: rainbowpony
success

Additional info:
should be similar to
Warning: ALREADY_ENABLED: 'rule service name="network-unreachable" log' already in 'public'
success

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