Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check of /var/log/dmesg from OVAL #10145

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{{{ oval_metadata("The NX (no-execution) bit flag should be set on the system.") }}}
<criteria operator="AND">
<criterion comment="NX bit is set" test_ref="test_NX_cpu_support" />
<criterion comment="No log messages about NX being disabled" test_ref="test_messages_nx_active" />
<criterion comment="NX is not disabled in the kernel command line" test_ref="test_noexec_cmd_line" />
</criteria>
</definition>
Expand All @@ -12,10 +11,6 @@
<ind:object object_ref="obj_NX_cpu_support" />
</ind:textfilecontent54_test>

<ind:textfilecontent54_test check="all" check_existence="none_exist" id="test_messages_nx_active" version="1" comment="No log messages about NX being disabled">
<ind:object object_ref="obj_messages_nx_active" />
</ind:textfilecontent54_test>

<ind:textfilecontent54_test check="all" check_existence="none_exist" id="test_noexec_cmd_line" version="1" comment="NX is not disabled in the kernel command line">
<ind:object object_ref="obj_noexec_cmd_line" />
</ind:textfilecontent54_test>
Expand All @@ -26,16 +21,6 @@
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>

<ind:textfilecontent54_object id="obj_messages_nx_active" version="1">
{{% if 'ubuntu' not in product %}}
<ind:filepath>/var/log/messages</ind:filepath>
{{% else %}}
<ind:filepath>/var/log/dmesg</ind:filepath>
{{% endif %}}
<ind:pattern operation="pattern match">^.+protection: disabled.+</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>

<ind:textfilecontent54_object id="obj_noexec_cmd_line" version="1">
<ind:filepath>/proc/cmdline</ind:filepath>
<ind:pattern operation="pattern match">.+noexec[0-9]*=off.+</ind:pattern>
Expand Down