I have created custom check to ensure firewall service is not enabled for Linux red hat Enterprise 6 below relevance checks
can any one suggest below relevance is checking on all levels or it is checking on any level
Relevance 1
(version of client >= “8.1.551.0”) AND (exists match (regex “Red Hat Enterprise (Client|Server|Workstation) 6”) of name of operating system)
Relevance 2
not exists 1 whose (exists (concatenation “, " of (it as string) of (exists (files of folder (”/etc/rc"& item 0 of it &".d"), it) whose (name of item 0 of it = (regex (“S[0-9]{2}” & item 1 of item 1 of it))) of it = False) of ((first matches (regex “.*”) of (“0”;“1”;“2”;“3”;“4”;“5”;“6”) , it) of it) of (if exist (tuple string items 1 of (concatenation ", " of substrings separated by “%22” of (it as string)) of services) whose (it = “iptables”) then (tuple string items 1 of (concatenation ", " of substrings separated by “%22” of (it as string)) of services) whose (it = “iptables”) else nothing) ) whose (number of substrings separated by ", " whose (it is not “”) whose (it as boolean is False) of it = 0))
((first matches (regex “.*”) of (“0”;“1”;“2”;“3”;“4”;“5”;“6”) , it) of it) of (if exist (tuple string items 1 of (concatenation ", " of substrings separated by “%22” of (it as string)) of services) whose (it = “iptables”) then (tuple string items 1 of (concatenation ", " of substrings separated by “%22” of (it as string)) of services) whose (it = “iptables”) else nothing)