From 68e7c5b954197805e82752021032cf8e0fc97a96 Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Sun, 30 Mar 2014 17:43:55 +0200 Subject: Handle version and add in hidepid check --- xml/SCAP/Makefile | 2 ++ xml/SCAP/gentoo-oval.xml | 35 +++++++++++++++++++++++++++++++++++ xml/SCAP/gentoo-xccdf.xml | 20 +++++++++++++++++--- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/xml/SCAP/Makefile b/xml/SCAP/Makefile index f0b8628..1a48ecf 100644 --- a/xml/SCAP/Makefile +++ b/xml/SCAP/Makefile @@ -28,6 +28,8 @@ prep: -cp -R bin/ ~/tmp/ -cp ~/tmp/gentoo-oval.xml ~/tmp/cpe-oval.xml -sed -i 's|gentoo-oval.xml|cpe-oval.xml|g' ~/tmp/gentoo-cpe.xml + -sed -i "s|@@VERSION@@|`date +%Y%m%d`|g" ~/tmp/gentoo-xccdf.xml + -sed -i "s|@@DATE@@|`date +%Y-%m-%d`|g" ~/tmp/gentoo-xccdf.xml upload: -pushd ~/tmp; scp gentoo-cpe.xml gentoo-xccdf.xml gentoo-oval.xml gentoo-ds.xml guide-gentoo-xccdf.html report-gentoo-oval.html report-gentoo-xccdf.html $(location)/; popd; diff --git a/xml/SCAP/gentoo-oval.xml b/xml/SCAP/gentoo-oval.xml index a031348..7f6e674 100644 --- a/xml/SCAP/gentoo-oval.xml +++ b/xml/SCAP/gentoo-oval.xml @@ -547,6 +547,21 @@ + + + /proc is mounted with hidepid=1 or hidepid=2 + + Gentoo Linux + + + The /proc file system should be mounted with hidepid=1 or 2 so that other users' processes are not visible to non-authorized accounts. + + + + + + + @@ -824,6 +839,16 @@ + + + + + + + + @@ -944,6 +969,11 @@ 1 + + /proc + + @@ -1013,6 +1043,11 @@ (console|tty[[:digit:]]+) + + hidepid=[12] + + diff --git a/xml/SCAP/gentoo-xccdf.xml b/xml/SCAP/gentoo-xccdf.xml index 5fe590d..3c3afcd 100644 --- a/xml/SCAP/gentoo-xccdf.xml +++ b/xml/SCAP/gentoo-xccdf.xml @@ -1,13 +1,13 @@ - - draft + + draft Gentoo Security Benchmark This benchmarks helps people in improving their system configuration to be more resilient against attacks and vulnerabilities. - 20140326.1 + @@VERSION@@ @@ -101,6 +101,8 @@ + +