[Open-scap] Anding the same property - is it possible?
Pravin Goyal
pravin.goyal at outlook.com
Tue Apr 26 06:16:30 UTC 2016
Hi All,
I was trying below state:
<textfilecontent54_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
id="oval:vrops-sles113.vmware.com:ste:38"
version="1"
comment="SRG-OS-000076-GPOS-00044-login-defs-60-or-less">
<subexpression datatype="int" operation="less than or equal">60</subexpression>
<subexpression datatype="int" operation="not equal">0</subexpression>
</textfilecontent54_state>
and this throws the below error:
Element '{http://oval.mitre.org/XMLSchema/oval-definitions-5#independent}subexpression': This element is not expected. Expected is ( {http://oval.mitre.org/XMLSchema/oval-definitions-5#independent}windows_view ).
OpenSCAP Error: Invalid OVAL Definition (5.11) content in vRops-6.3-SLES-11.3-oval.xml. [oscap_source.c:205]
Am I missing something?
The above works perfectly if I remove one of the subexpressions from the state. So, do I need to have different tests corresponding to one of the subexpressions each?
operator seems to work well if the tested properties are different. But, seems it does not if tested properties are same. Could this be OpenSCAP bug?
Thanks and regards,
Pravin Goyal
Pravin Goyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20160426/f46b3e62/attachment.htm>
More information about the Open-scap-list
mailing list