List the security advisories on the mainpage. Security nowadays _is_

a serious issue, and we should give admins full support in this area.
Exploited systems only throw a back light back to us.

I posted this to doc@ a months ago or so (no response), and then
discussed it a little later in a different thread on cvs-www with other
people, including the security-officer, who showed support for it.
This commit is contained in:
Alexander Langer 2003-02-14 10:27:02 +00:00
parent aa788eba55
commit eae86491e5
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=15998
2 changed files with 28 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/Makefile,v 1.91 2002/11/16 18:43:30 ceri Exp $
# $FreeBSD: www/en/Makefile,v 1.92 2003/01/19 16:48:28 mwlucas Exp $
.if exists(Makefile.conf)
.include "Makefile.conf"
.endif
@ -92,7 +92,7 @@ WEBDIR= data
DATA+= index.html
CLEANFILES+= index.html
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl security/advisories.xml
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml
.if !defined(NO_TIDY)

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: www/en/index.xsl,v 1.49 2003/02/10 06:00:02 trhodes Exp $ -->
<!-- $FreeBSD: www/en/index.xsl,v 1.50 2003/02/11 11:34:08 brueffer Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -6,7 +6,7 @@
<xsl:import href="news/includes.xsl"/>
<xsl:variable name="base" select="'.'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.49 2003/02/10 06:00:02 trhodes Exp $'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.50 2003/02/11 11:34:08 brueffer Exp $'"/>
<xsl:variable name="title" select="'The FreeBSD Project'"/>
<xsl:output type="html" encoding="iso-8859-1"
@ -465,6 +465,30 @@
<a href="news/press.html">More...</a>
</font>
</p>
<p><font size="+1" color="#990000"><b>Security Advisories</b></font><br/>
<font size="-1">
Latest update:
<xsl:value-of
select="document('security/advisories.xml')/descendant::month[position() = 1]/name"/>
<xsl:text> </xsl:text>
<xsl:value-of
select="document('security/advisories.xml')/descendant::day[position() = 1]/name"/>
<xsl:text>, </xsl:text>
<xsl:value-of
select="document('security/advisories.xml')/descendant::year[position() = 1]/name"/>
<br/>
<!-- Pull in the 10 most recent security advisories -->
<xsl:for-each select="document('security/advisories.xml')/descendant::advisory[position() &lt; 10]">
&#183; <a>
<xsl:attribute name="href">ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/<xsl:value-of select="name"/>.asc</xsl:attribute>
<xsl:value-of select="name"/>
</a><br/>
</xsl:for-each>
<a href="security/">More...</a>
</font>
</p>
</td>
</tr>
</table>