[kernel-sec-discuss] r848 - scripts

dannf at alioth.debian.org dannf at alioth.debian.org
Wed Jun 6 23:40:37 UTC 2007


Author: dannf
Date: 2007-06-06 23:40:37 +0000 (Wed, 06 Jun 2007)
New Revision: 848

Modified:
   scripts/html-report
Log:
link to the cve at mitre

Modified: scripts/html-report
===================================================================
--- scripts/html-report	2007-06-06 06:30:59 UTC (rev 847)
+++ scripts/html-report	2007-06-06 23:40:37 UTC (rev 848)
@@ -133,12 +133,17 @@
 def populateTable(matrix):
     issues = matrix.keys()
     issues.sort()
-
+    
+    cvere = re.compile('^CVE-\d\d\d\d\-\d\d\d\d')
     for i in issues:
+        if cvere.match(i):
+	    issueref = '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name='+i+'">'+i+'</a>'
+	else:
+	    issueref = i
         versions = matrix[i].keys()
         versions.sort()
         sys.stdout.write('  <tr>\n')
-        sys.stdout.write('    <td>' + i + '</td>\n')
+        sys.stdout.write('    <td>' + issueref + '</td>\n')
         for v in versions:
             cell = statusCell(matrix[i][v].strip())
             if cell:




More information about the kernel-sec-discuss mailing list