[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#659843: security-tracker: add links to Ubuntu, Gentoo CVE trackers and to the openwall vendors page



Package: security-tracker
Severity: wishlist
Tags: patch

I would like to add the attached patch to the security tracker to add
links to the Ubuntu and Gentoo CVE trackers and add a link to the
openwall vendors page, which links to more trackers for more distros.
I have access to the security-tracker repository but I would like some
review of the patch and for someone to update the tracker website.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
Index: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	(revision 18427)
+++ bin/tracker_service.py	(working copy)
@@ -313,6 +313,9 @@
                                       "; ",
                                       self.make_rhbug_ref(url, bug.name,
                                                         'RH'),
+                                      self.make_ubuntu_bug_ref(url, bug.name, 'Ubuntu'),
+                                      self.make_gentoo_bug_ref(url, bug.name, 'Gentoo'),
+                                      A(url.absolute('http://oss-security.openwall.org/wiki/vendors'), 'more')
                                       ")")
             elif source == 'DSA':
                 source_xref = self.make_dsa_ref(url, bug.name, 'Debian')
@@ -1194,6 +1197,10 @@
     def url_rhbug(self, url, name):
         return url.absolute("https://bugzilla.redhat.com/show_bug.cgi";,
                             id=name)
+    def url_ubuntu_bug(self, url, name):
+        return url.absolute("http://people.canonical.com/~ubuntu-security/cve/%s"; % name)
+    def url_gentoo_bug(self, url, name):
+        return url.absolute("http://bugs.gentoo.org/show_bug.cgi";, id=name)
     
     def url_dsa(self, url, dsa, re_dsa=re.compile(r'^DSA-(\d+)(?:-\d+)?$')):
         match = re_dsa.match(dsa)
@@ -1251,6 +1258,16 @@
             name = cve
         return A(self.url_rhbug(url, cve), name)
 
+    def make_ubuntu_bug_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_ubuntu_bug(url, cve), name)
+
+    def make_gentoo_bug_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_gentoo_bug(url, cve), name)
+
     def make_dsa_ref(self, url, dsa, name=None):
         if name is None:
             name = dsa

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: