[PATCH 7/7] Updated OVAL name, logrotate_rotate_all_files -> ensure_logrotate_activated
Shawn Wells
shawn at redhat.com
Fri May 23 23:00:46 UTC 2014
[shawnw at ssg-rhel6-devbox checks]$ grep -rin logrotate_rotate_all_files ../
../system/logging.xml:377:<oval id="logrotate_rotate_all_files" />
../checks/testids.ini:48:logrotate_rotate_all_files = 196
../checks/logrotate_rotate_all_files.xml:3: id="logrotate_rotate_all_files" version="1">
Binary file ../checks/.logrotate_rotate_all_files.xml.swp matches
[shawnw at ssg-rhel6-devbox checks]$ sed -i 's/logrotate_rotate_all_files/ensure_logrotate_activated/g' ../system/logging.xml logrotate_rotate_all_files.xml
[shawnw at ssg-rhel6-devbox checks]$ git mv logrotate_rotate_all_files.xml ensure_logrotate_activated.xml
Signed-off-by: Shawn Wells <shawn at redhat.com>
---
RHEL/6/input/checks/ensure_logrotate_activated.xml | 20 ++++++++++++++++++++
RHEL/6/input/checks/logrotate_rotate_all_files.xml | 20 --------------------
RHEL/6/input/system/logging.xml | 2 +-
3 files changed, 21 insertions(+), 21 deletions(-)
create mode 100644 RHEL/6/input/checks/ensure_logrotate_activated.xml
delete mode 100644 RHEL/6/input/checks/logrotate_rotate_all_files.xml
diff --git a/RHEL/6/input/checks/ensure_logrotate_activated.xml b/RHEL/6/input/checks/ensure_logrotate_activated.xml
new file mode 100644
index 0000000..aca539b
--- /dev/null
+++ b/RHEL/6/input/checks/ensure_logrotate_activated.xml
@@ -0,0 +1,20 @@
+<def-group>
+ <definition class="compliance"
+ id="ensure_logrotate_activated" version="1">
+ <metadata>
+ <title>Ensure All Logs are Rotated by logrotate</title>
+ <affected family="unix">
+ <platform>Red Hat Enterprise Linux 6</platform>
+ </affected>
+ <description>The logrotate (syslog rotater) service should be
+ enabled.</description>
+ </metadata>
+ <criteria>
+ <criterion comment="Find each file in /etc/syslog.conf in /etc/logrotate.d/syslog"
+ test_ref="test_20154" />
+ </criteria>
+ </definition>
+ <ind:unknown_test check="all"
+ comment="use extended content to evaluated this test"
+ id="test_20154" version="1" />
+</def-group>
diff --git a/RHEL/6/input/checks/logrotate_rotate_all_files.xml b/RHEL/6/input/checks/logrotate_rotate_all_files.xml
deleted file mode 100644
index 2113b99..0000000
--- a/RHEL/6/input/checks/logrotate_rotate_all_files.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<def-group>
- <definition class="compliance"
- id="logrotate_rotate_all_files" version="1">
- <metadata>
- <title>Ensure All Logs are Rotated by logrotate</title>
- <affected family="unix">
- <platform>Red Hat Enterprise Linux 6</platform>
- </affected>
- <description>The logrotate (syslog rotater) service should be
- enabled.</description>
- </metadata>
- <criteria>
- <criterion comment="Find each file in /etc/syslog.conf in /etc/logrotate.d/syslog"
- test_ref="test_20154" />
- </criteria>
- </definition>
- <ind:unknown_test check="all"
- comment="use extended content to evaluated this test"
- id="test_20154" version="1" />
-</def-group>
diff --git a/RHEL/6/input/system/logging.xml b/RHEL/6/input/system/logging.xml
index 82455d6..c7fc389 100644
--- a/RHEL/6/input/system/logging.xml
+++ b/RHEL/6/input/system/logging.xml
@@ -374,7 +374,7 @@ If logrotate is configured properly, output should include references to
<tt>/etc/cron.daily</tt>.
</ocil>
<ident cce="27014-0" />
-<oval id="logrotate_rotate_all_files" />
+<oval id="ensure_logrotate_activated" />
<ref nist="AU-9" disa="366" />
</Rule>
</Group>
--
1.7.1
More information about the scap-security-guide
mailing list