Skip to content

Commit b01b3d6

Browse files
committed
Update OVAL macro to convert string values to lowercase for runtime sshd checks
1 parent c5e83ee commit b01b3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/macros/10-oval.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ Generates the :code:`<affected>` tag for OVAL check using correct product platfo
12171217
</ind:textfilecontent54_state>
12181218
{{%- else -%}}
12191219
<ind:textfilecontent54_state id="state_runtime_{{{ parameter }}}_{{{ rule_id }}}" version="1">
1220-
<ind:subexpression operation="{{{ 'pattern match' if datatype == 'string' else 'equals' }}}" datatype="{{{ datatype }}}">{{{ value }}}</ind:subexpression>
1220+
<ind:subexpression operation="{{{ 'pattern match' if datatype == 'string' else 'equals' }}}" datatype="{{{ datatype }}}">{{{ value | lower if datatype == 'string' else value }}}</ind:subexpression>
12211221
</ind:textfilecontent54_state>
12221222
{{%- endif -%}}
12231223
{{%- endif %}}

0 commit comments

Comments
 (0)