[PATCH] Created a check to ensure prelinking has been disabled and added the oval id to the disable_prelink rule inside the integrity.xml file.

Shawn Wells shawn at redhat.com
Sun Nov 10 20:51:38 UTC 2013


On 11/8/13, 9:45 AM, Caleb Cooper wrote:
> Signed-off-by: Caleb Cooper <coopercd at ornl.gov>
> ---
>   RHEL6/input/checks/disable_prelink.xml    |   24 ++++++++++++++++++++++++
>   RHEL6/input/system/software/integrity.xml |    1 +
>   2 files changed, 25 insertions(+), 0 deletions(-)
>   create mode 100644 RHEL6/input/checks/disable_prelink.xml
>
> diff --git a/RHEL6/input/checks/disable_prelink.xml b/RHEL6/input/checks/disable_prelink.xml
> new file mode 100644
> index 0000000..5bebdc0
> --- /dev/null
> +++ b/RHEL6/input/checks/disable_prelink.xml
> @@ -0,0 +1,24 @@
> +<def-group>
> +  <definition class="compliance" id="disable_prelink" version="1">
> +    <metadata>
> +      <title>Disable Prelinking</title>
> +      <affected family="unix">
> +        <platform>Red Hat Enterprise Linux 6</platform>
> +      </affected>
> +      <description>The prelinking feature can interfere with the operation of AIDE, because it changes binaries. </description>

Add an OVAL signoff within the <metadata> tag, e.g:

<reference source="caleb" ref_id="20131110" ref_url="test_attestation" />


> +    </metadata>
> +    <criteria>
> +      <criterion comment="Ensure prelinking is diabled" test_ref="test_prelinking_no" />
> +    </criteria>
> +  </definition>
> +  <ind:textfilecontent54_test check="all" check_existence="all_exist"
> +  comment="Tests whether prelinking is disabled"
> +  id="test_prelinking_no" version="1">
> +    <ind:object object_ref="obj_prelinking_no" />
> +  </ind:textfilecontent54_test>
> +  <ind:textfilecontent54_object id="obj_prelinking_no" version="1">
> +    <ind:filepath>/etc/sysconfig/prelink</ind:filepath>
> +    <ind:pattern operation="pattern match">^PRELINKING=no$</ind:pattern>
> +    <ind:instance datatype="int">1</ind:instance>
> +  </ind:textfilecontent54_object>
> +</def-group>
> diff --git a/RHEL6/input/system/software/integrity.xml b/RHEL6/input/system/software/integrity.xml
> index b180f3a..4807009 100644
> --- a/RHEL6/input/system/software/integrity.xml
> +++ b/RHEL6/input/system/software/integrity.xml
> @@ -60,6 +60,7 @@ The prelinking feature can interfere with the operation
>   of AIDE, because it changes binaries.
>   </rationale>
>   <ident cce="27221-1" />
> +<oval id="disable_prelink" />
>   <ref nist="CM-6(d),CM-6(3),SC-28, SI-7" />
>   </Rule>
>   



Ack (+thanks! the CS2 guys will be most pleased)


More information about the scap-security-guide mailing list