Skip to content

Fix coreos_kernel_option oval check#6133

Closed
JAORMX wants to merge 1 commit intoComplianceAsCode:masterfrom
JAORMX:fix-regex-coreos
Closed

Fix coreos_kernel_option oval check#6133
JAORMX wants to merge 1 commit intoComplianceAsCode:masterfrom
JAORMX:fix-regex-coreos

Conversation

@JAORMX
Copy link
Copy Markdown
Contributor

@JAORMX JAORMX commented Sep 30, 2020

The regex was missing a .

The regex was missing a `.`
@JAORMX JAORMX requested a review from evgenyz September 30, 2020 08:41
@JAORMX
Copy link
Copy Markdown
Contributor Author

JAORMX commented Sep 30, 2020

Pull-request updated, HEAD is now 757e53a

<title>Ensure that the most recent (default) CoreOS boot loader entry is configured to run Linux operating system with argument {{{ ARG_NAME_VALUE }}}</title>
{{{- oval_affected(products) }}}
<description>Ensure {{{ ARG_NAME_VALUE }}} option is configured in the 'options' line in /boot/loader/entries/ostree-2-*.conf (or ostree-1-*.conf if the second version does not exists).</description>
<description>Ensure {{{ ARG_NAME_VALUE }}} option is configured in the 'options' line in /boot/loader/entries/ostree-2-.*.conf (or ostree-1-.*.conf if the second version does not exists).</description>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you consider getting rid of this metadata boilerplate similarly to e.g. https://github.com/ComplianceAsCode/content/blob/master/shared/templates/template_OVAL_file_owner i.e. by using the oval_metadata macro? That would look like {{{ oval_metadata("Ensure " + ARG_NAME_VALUE + " option is configured in the 'options' line in /boot/loader/entries/ostree-2-.*.conf (or ostree-1-.*.conf if the second version does not exist).") }}}

@ggbecker
Copy link
Copy Markdown
Member

@openscap-ci test this please

@evgenyz
Copy link
Copy Markdown
Member

evgenyz commented Sep 30, 2020

I'm reworking these rules and templates in #6100. I'll incorporate this fix. I'll also consider using oval_metadata

@JAORMX
Copy link
Copy Markdown
Contributor Author

JAORMX commented Sep 30, 2020

Abandoning in favor of #6100

@JAORMX JAORMX closed this Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants