Hi Team,

I need some piece of advice how to implement join in OVAL for variables
if some of them are empty .

I'm looking at the existing example from master which uses
<concat>-<split>. However this code doesn't work as expected for empty
variable var_rfg_include_config_regexin <concat> - returned result "no
value", while expected would be "%^/etc/rsyslog.conf$":
https://github.com/ComplianceAsCode/content/blob/master/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_files_groupownership/oval/shared.xml#L43

Note: UniqueFunctionType
<https://oval.mitre.org/language/version5.11/ovaldefinition/documentation/oval-definitions-schema.html#UniqueFunctionType>
looks more applicable here, but it doesn't work as well with the same
reason - returned result is "no value" when one of variables is empty.

Can any approach be suggested to avoid getting "no value" and return
expected result for sample var_rfg_all_log_files_as_string_regexvariable
(with joined values from defined only variables/objects)?

Regards,
Ilya.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Open-scap-list mailing list
Open-scap-list@redhat.com
https://www.redhat.com/mailman/listinfo/open-scap-list

Reply via email to