[PATCH 3/9] OVAL/XCCDF namings for no_shelllogin_for_systemaccounts

shawn at redhat.com shawn at redhat.com
Wed Sep 18 20:38:54 UTC 2013


From: Shawn Wells <shawn at redhat.com>

---
 .../accounts_no_shelllogin_for_systemaccounts.xml  |   23 --------------------
 .../checks/no_shelllogin_for_systemaccounts.xml    |   23 ++++++++++++++++++++
 .../system/accounts/restrictions/root_logins.xml   |    2 +-
 3 files changed, 24 insertions(+), 24 deletions(-)
 delete mode 100644 RHEL6/input/checks/accounts_no_shelllogin_for_systemaccounts.xml
 create mode 100644 RHEL6/input/checks/no_shelllogin_for_systemaccounts.xml

diff --git a/RHEL6/input/checks/accounts_no_shelllogin_for_systemaccounts.xml b/RHEL6/input/checks/accounts_no_shelllogin_for_systemaccounts.xml
deleted file mode 100644
index ff17b6e..0000000
--- a/RHEL6/input/checks/accounts_no_shelllogin_for_systemaccounts.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<def-group>
-  <definition class="compliance" id="accounts_no_shelllogin_for_systemaccounts" version="1">
-    <metadata>
-      <title>System Accounts Do Not Run a Shell</title>
-      <affected family="unix">
-        <platform>Red Hat Enterprise Linux 6</platform>
-      </affected>
-      <description>The root account is the only system account that should have a login shell.</description>
-      <reference source="swells" ref_id="20130918" ref_url="test_attestation" />
-    </metadata>
-    <criteria>
-      <criterion comment="tests for the presence of login shells (not /sbin/nologin) for system accounts in /etc/passwd file" test_ref="test_accounts_no_shelllogin_for_systemaccounts" />
-    </criteria>
-  </definition>
-  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="tests for the presence of login shells (not /sbin/nologin) for system accounts in /etc/passwd file" id="test_accounts_no_shelllogin_for_systemaccounts" version="1">
-    <ind:object object_ref="object_accounts_no_shelllogin_for_systemaccounts" />
-  </ind:textfilecontent54_test>
-  <ind:textfilecontent54_object id="object_accounts_no_shelllogin_for_systemaccounts" version="1">
-    <ind:filepath>/etc/passwd</ind:filepath>
-    <ind:pattern operation="pattern match">^(?!root).*:x:[\d]*:0*([0-9]{1,2}|[1-4][0-9]{2}):[^:]*:[^:]*:(?!\/sbin\/nologin|\/bin\/sync|\/sbin\/shutdown|\/sbin\/halt).*$</ind:pattern>
-    <ind:instance datatype="int">1</ind:instance>
-  </ind:textfilecontent54_object>
-</def-group>
diff --git a/RHEL6/input/checks/no_shelllogin_for_systemaccounts.xml b/RHEL6/input/checks/no_shelllogin_for_systemaccounts.xml
new file mode 100644
index 0000000..b7dfb5d
--- /dev/null
+++ b/RHEL6/input/checks/no_shelllogin_for_systemaccounts.xml
@@ -0,0 +1,23 @@
+<def-group>
+  <definition class="compliance" id="no_shelllogin_for_systemaccounts" version="1">
+    <metadata>
+      <title>System Accounts Do Not Run a Shell</title>
+      <affected family="unix">
+        <platform>Red Hat Enterprise Linux 6</platform>
+      </affected>
+      <description>The root account is the only system account that should have a login shell.</description>
+      <reference source="swells" ref_id="20130918" ref_url="test_attestation" />
+    </metadata>
+    <criteria>
+      <criterion comment="tests for the presence of login shells (not /sbin/nologin) for system accounts in /etc/passwd file" test_ref="test_no_shelllogin_for_systemaccounts" />
+    </criteria>
+  </definition>
+  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="tests for the presence of login shells (not /sbin/nologin) for system accounts in /etc/passwd file" id="test_no_shelllogin_for_systemaccounts" version="1">
+    <ind:object object_ref="object_no_shelllogin_for_systemaccounts" />
+  </ind:textfilecontent54_test>
+  <ind:textfilecontent54_object id="object_no_shelllogin_for_systemaccounts" version="1">
+    <ind:filepath>/etc/passwd</ind:filepath>
+    <ind:pattern operation="pattern match">^(?!root).*:x:[\d]*:0*([0-9]{1,2}|[1-4][0-9]{2}):[^:]*:[^:]*:(?!\/sbin\/nologin|\/bin\/sync|\/sbin\/shutdown|\/sbin\/halt).*$</ind:pattern>
+    <ind:instance datatype="int">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 0701ddb..2f21dd9 100644
--- a/RHEL6/input/system/accounts/restrictions/root_logins.xml
+++ b/RHEL6/input/system/accounts/restrictions/root_logins.xml
@@ -158,7 +158,7 @@ section on the root account. Doing so might cause the system to
 become inaccessible.
 </warning>
 <ident cce="26966-2" />
-<oval id="accounts_no_shelllogin_for_systemaccounts" />
+<oval id="no_shelllogin_for_systemaccounts" />
 <ref nist="" disa="178" />
 <tested by="DS" on="20121024"/>
 </Rule>
-- 
1.7.1



More information about the scap-security-guide mailing list