>From 028f300b37ca7560ce4d0e5cdd29ba1bfb9f0395 Mon Sep 17 00:00:00 2001 From: Shawn Wells <[email protected]> Date: Mon, 23 Dec 2013 02:28:10 -0500 Subject: [PATCH 08/25] Adding selinux_state to shared
RHEL7 testing: [root@localhost oval]# grep permissive /etc/selinux/config SELINUX=permissive [root@localhost oval]# ./testcheck.py selinux_state.xml external_variable with id : var_selinux_state Evaluating with OVAL tempfile : /tmp/selinux_stateEUkcgV.xml Writing results to : /tmp/selinux_stateEUkcgV.xml-results Definition oval:scap-security-guide.testing:def:108: false Evaluation done. [root@localhost oval]# sed -i 's/SELINUX=permissive/SELINUX=enforcing/g' /etc/selinux/config [root@localhost oval]# ./testcheck.py selinux_state.xml external_variable with id : var_selinux_state Evaluating with OVAL tempfile : /tmp/selinux_statePn9bxr.xml Writing results to : /tmp/selinux_statePn9bxr.xml-results Definition oval:scap-security-guide.testing:def:108: true Evaluation done. Signed-off-by: Shawn Wells <[email protected]> --- :100644 100644 5ed7f5d... 97a480c... M shared/oval/selinux_state.xml shared/oval/selinux_state.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/oval/selinux_state.xml b/shared/oval/selinux_state.xml index 5ed7f5d..97a480c 100644 --- a/shared/oval/selinux_state.xml +++ b/shared/oval/selinux_state.xml @@ -21,7 +21,7 @@ </ind:textfilecontent54_test> <ind:textfilecontent54_object id="object_etc_selinux_config" version="1"> - <ind:filepath>/etc/selinux/config</ind:path> + <ind:filepath>/etc/selinux/config</ind:filepath> <ind:pattern operation="pattern match">^[\s]*SELINUX[\s]*=[\s]*(.*)[\s]*$</ind:pattern> <ind:instance datatype="int">1</ind:instance> </ind:textfilecontent54_object> -- 1.8.3.1
_______________________________________________ scap-security-guide mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide
