[PATCH 4/4] OVAL check for Dovecot setting mail_drop_priv_before_exec.

Willy Santos wsantos at redhat.com
Thu Apr 26 18:48:47 UTC 2012


Signed-off-by: Willy Santos <wsantos at redhat.com>
---
  .../dovecot_mail_drop_priv_before_exec_yes.xml     |   28 
++++++++++++++++++++
  1 files changed, 28 insertions(+), 0 deletions(-)
  create mode 100644 
rhel6/src/input/checks/dovecot_mail_drop_priv_before_exec_yes.xml

diff --git 
a/rhel6/src/input/checks/dovecot_mail_drop_priv_before_exec_yes.xml 
b/rhel6/src/input/checks/dovecot_mail_drop_priv_before_exec_yes.xml
new file mode 100644
index 0000000..edb721a
--- /dev/null
+++ b/rhel6/src/input/checks/dovecot_mail_drop_priv_before_exec_yes.xml
@@ -0,0 +1,28 @@
+<def-group>
+  <definition class="compliance"
+  id="dovecot_mail_drop_priv_before_exec_yes" version="1">
+    <metadata>
+      <title>Enable login_process_per_connection in Dovecot</title>
+      <affected family="unix">
+        <platform>Red Hat Enterprise Linux 6</platform>
+      </affected>
+      <reference ref_id="CCE-4410-7" source="CCE" />
+      <description>login_process_per_connection should be 
enabled.</description>
+    </metadata>
+    <criteria comment="Enable login_process_per_connection in Dovecot">
+      <criterion test_ref="test_dovecot_mail_drop_priv_before_exec_yes" />
+    </criteria>
+  </definition>
+  <ind:textfilecontent54_test check="all" check_existence="all_exist"
+  comment="Tests the value of the 
mail_drop_priv_before_exec[\s]*(&lt;:nocomment:&gt;*) setting in the 
/etc/dovecot.conf file"
+  id="test_dovecot_mail_drop_priv_before_exec_yes" version="1">
+    <ind:object object_ref="obj_dovecot_mail_drop_priv_before_exec_yes" />
+  </ind:textfilecontent54_test>
+  <ind:textfilecontent54_object 
id="obj_dovecot_mail_drop_priv_before_exec_yes"
+  version="1">
+    <ind:path>/etc</ind:path>
+    <ind:filename>dovecot.conf</ind:filename>
+    <ind:pattern operation="pattern 
match">^[\s]*mail_drop_priv_before_exec[\s]*=[\s]*yes\s*$</ind:pattern>
+    <ind:instance datatype="int">1</ind:instance>
+  </ind:textfilecontent54_object>
+</def-group>
-- 
1.7.7.6



More information about the scap-security-guide mailing list