From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 516FB1387FD for ; Sun, 30 Mar 2014 20:08:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C3EDE09F0; Sun, 30 Mar 2014 20:08:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F862E09F0 for ; Sun, 30 Mar 2014 20:08:39 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 726C533FC0C for ; Sun, 30 Mar 2014 20:08:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B66A1188F3 for ; Sun, 30 Mar 2014 20:08:36 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1396209991.15f31c8d487f24d0d6971801531ebfc9e06161ec.swift@gentoo> Subject: [gentoo-commits] proj/hardened-docs:master commit in: xml/SCAP/ X-VCS-Repository: proj/hardened-docs X-VCS-Files: xml/SCAP/gentoo-oval.xml xml/SCAP/gentoo-xccdf.xml X-VCS-Directories: xml/SCAP/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 15f31c8d487f24d0d6971801531ebfc9e06161ec X-VCS-Branch: master Date: Sun, 30 Mar 2014 20:08:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 26f75d9c-6949-474f-947a-dd31aef7684f X-Archives-Hash: a951f5c0434a80e37c00b4a1256abcef commit: 15f31c8d487f24d0d6971801531ebfc9e06161ec Author: Sven Vermeulen siphos be> AuthorDate: Sun Mar 30 20:06:31 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Mar 30 20:06:31 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-docs.git;a=commit;h=15f31c8d Add test for world writable directories --- xml/SCAP/gentoo-oval.xml | 101 ++++++++++++++++++++++++++++++++++++++++++++++ xml/SCAP/gentoo-xccdf.xml | 29 ++++++++++++- 2 files changed, 128 insertions(+), 2 deletions(-) diff --git a/xml/SCAP/gentoo-oval.xml b/xml/SCAP/gentoo-oval.xml index f873701..427e5c1 100644 --- a/xml/SCAP/gentoo-oval.xml +++ b/xml/SCAP/gentoo-oval.xml @@ -581,6 +581,37 @@ + + + /etc/lilo.conf has a password set + + Gentoo Linux + + + If /etc/lilo.conf exists, then it must have a password set. + + + + + + + + + + + All world writable directories have the sticky bit set + + Gentoo Linux + + + All world writable directories must have the sticky bit set. + + + + + + + @@ -879,6 +910,7 @@ version="1" check="at least one" check_existence="at_least_one_exists"> + @@ -889,6 +921,31 @@ + + + + + + + + + + + + + + + + + + + @@ -1031,6 +1088,35 @@ /boot/grub + + /etc/lilo.conf + + + + /etc/lilo.conf + ^([^#\n]*)(?#.*)?$ + 1 + + + + + + oval:org.gentoo.dev.swift:obj:28 + + oval:org.gentoo.dev.swift:ste:18 + + + + + + / + + + @@ -1110,6 +1196,21 @@ [\s]*password --md5 [\S]+ + + [\s]*password=[\S]+ + + + + 1 + + + + 0 + + diff --git a/xml/SCAP/gentoo-xccdf.xml b/xml/SCAP/gentoo-xccdf.xml index 732bde3..aa85c1e 100644 --- a/xml/SCAP/gentoo-xccdf.xml +++ b/xml/SCAP/gentoo-xccdf.xml @@ -20,6 +20,8 @@ large impact on the performance of a server. Tests include scripted validationn. + + Default server setup settings (non-scripted) @@ -103,8 +107,10 @@ - + Default server setup settings @@ -1516,7 +1522,7 @@ grub> quit - Grub legacy has a password entry with md5 hash + Grub legacy (if it exists) has a password entry with md5 hash Edit /boot/grub/grub.conf and set a password entry with md5 hash @@ -1557,6 +1563,15 @@ image=/boot/bzImage Rerun lilo after updating the configuration file. + + LILO (if it exists) has a password entry + + Edit /etc/lilo.conf and set a password entry + + + + + @@ -1782,6 +1797,16 @@ session required pam_unix.so world writable privilege is not accessible anyhow). + + All world writable directories have the sticky bit set + + Make sure all world-writable directories have the sticky bit set + + + + + + Limit setuid and setgid file and directory usage