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

Make additional check if selinux is enabled and operational #11510

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
9 changes: 9 additions & 0 deletions shared/applicability/oval/selinux_is_enabled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</metadata>
<criteria operator="AND">
<criterion comment="enforce is disabled" test_ref="test_etc_selinux_configured" />
<criterion comment="/sys/fs/selinux is present" test_ref="test_selinux_sys_fs_exist" />
</criteria>
</definition>

Expand All @@ -29,4 +30,12 @@
<ind:subexpression datatype="string"
operation="pattern match">^(enforcing|permissive)$</ind:subexpression>
</ind:textfilecontent54_state>
<unix:file_test check="all" check_existence="all_exist" comment="check if /sys/fs/selinux exists" id="test_selinux_sys_fs_exist" version="1">
<unix:object object_ref="object_selinux_sys_fs_exist" />
</unix:file_test>

<unix:file_object comment="/sys/fs/selinux" id="object_selinux_sys_fs_exist" version="1">
<unix:path>/sys/fs/selinux</unix:path>
<unix:filename xsi:nil="true" />
</unix:file_object>
</def-group>
Loading