[PATCH 19/21] Renamed OVAL in restrict_serial_port_logins.xml to match XCCDF rule name
Shawn Wells
shawn.d.wells at gmail.com
Sat Mar 30 00:29:29 UTC 2013
-------------- next part --------------
>From 482c7509379106fab4c1ddd77663248ae66d6c22 Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Fri, 29 Mar 2013 20:11:06 -0400
Subject: [PATCH 19/21] Renamed OVAL in restrict_serial_port_logins.xml to match XCCDF rule name
---
RHEL6/input/checks/restrict_serial_port_logins.xml | 27 ++++++++++++++++++++
RHEL6/input/checks/securetty_no_serial.xml | 27 --------------------
.../system/accounts/restrictions/root_logins.xml | 2 +-
3 files changed, 28 insertions(+), 28 deletions(-)
create mode 100644 RHEL6/input/checks/restrict_serial_port_logins.xml
delete mode 100644 RHEL6/input/checks/securetty_no_serial.xml
diff --git a/RHEL6/input/checks/restrict_serial_port_logins.xml b/RHEL6/input/checks/restrict_serial_port_logins.xml
new file mode 100644
index 0000000..78df91b
--- /dev/null
+++ b/RHEL6/input/checks/restrict_serial_port_logins.xml
@@ -0,0 +1,27 @@
+<def-group>
+ <definition class="compliance" id="securetty_no_serial" version="1">
+ <metadata>
+ <title>Restrict Serial Port Root Logins</title>
+ <affected family="unix">
+ <platform>Red Hat Enterprise Linux 6</platform>
+ </affected>
+ <description>Preventing direct root login to serial port interfaces
+ helps ensure accountability for actions taken on the system
+ using the root account.</description>
+ </metadata>
+ <criteria>
+ <criterion comment="serial ports /etc/securetty" test_ref="test_serial_ports_etc_securetty" negate="true" />
+ </criteria>
+ </definition>
+
+ <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="serial ports /etc/securetty" id="test_serial_ports_etc_securetty" version="1">
+ <ind:object object_ref="object_serial_ports_etc_securetty" />
+ </ind:textfilecontent54_test>
+
+ <ind:textfilecontent54_object comment="serial ports /etc/securetty" id="object_serial_ports_etc_securetty" version="1">
+ <ind:path>/etc</ind:path>
+ <ind:filename>securetty</ind:filename>
+ <ind:pattern operation="pattern match">^ttyS[0-9]+$</ind:pattern>
+ <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
+ </ind:textfilecontent54_object>
+</def-group>
diff --git a/RHEL6/input/checks/securetty_no_serial.xml b/RHEL6/input/checks/securetty_no_serial.xml
deleted file mode 100644
index 78df91b..0000000
--- a/RHEL6/input/checks/securetty_no_serial.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<def-group>
- <definition class="compliance" id="securetty_no_serial" version="1">
- <metadata>
- <title>Restrict Serial Port Root Logins</title>
- <affected family="unix">
- <platform>Red Hat Enterprise Linux 6</platform>
- </affected>
- <description>Preventing direct root login to serial port interfaces
- helps ensure accountability for actions taken on the system
- using the root account.</description>
- </metadata>
- <criteria>
- <criterion comment="serial ports /etc/securetty" test_ref="test_serial_ports_etc_securetty" negate="true" />
- </criteria>
- </definition>
-
- <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="serial ports /etc/securetty" id="test_serial_ports_etc_securetty" version="1">
- <ind:object object_ref="object_serial_ports_etc_securetty" />
- </ind:textfilecontent54_test>
-
- <ind:textfilecontent54_object comment="serial ports /etc/securetty" id="object_serial_ports_etc_securetty" version="1">
- <ind:path>/etc</ind:path>
- <ind:filename>securetty</ind:filename>
- <ind:pattern operation="pattern match">^ttyS[0-9]+$</ind:pattern>
- <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
- </ind:textfilecontent54_object>
-</def-group>
diff --git a/RHEL6/input/system/accounts/restrictions/root_logins.xml b/RHEL6/input/system/accounts/restrictions/root_logins.xml
index ec71fd3..bb33399 100644
--- a/RHEL6/input/system/accounts/restrictions/root_logins.xml
+++ b/RHEL6/input/system/accounts/restrictions/root_logins.xml
@@ -83,7 +83,7 @@ helps ensure accountability for actions taken on the systems
using the root account.
</rationale>
<ident cce="27047-0" />
-<oval id="securetty_no_serial" />
+<oval id="restrict_serial_port_logins" />
<ref nist="AC-6(2)" disa="770" />
<tested by="DS" on="20121024"/>
</Rule>
--
1.7.1
More information about the scap-security-guide
mailing list