+ print "Marking as security ..."
bug.security_related = True
- # Link the appropriate cve to the bug
- #
- found = False
- for cve in self.lp.launchpad.cves:
- if title in cve.display_name:
- found = True
- break
- if found:
- bug.lpbug.linkCVE(cve=cve)
-
- lp = self.lp.launchpad
+ # Link the appropriate cve to the bug.
+ # Cannot safely use 'linkCVE' due to LP: #439470
+ print "Linking to %s ..." % (title)
+ bug.add_comment(content=title)
+
ubuntu = lp.distributions["ubuntu"]
# Add bug tasks for related source packages
#
pkgs = ['linux-fsl-imx51', 'linux-mvl-dove', 'linux-lts-backport-maverick', 'linux-ti-omap4']
for p in pkgs:
+ print "Finding source package '%s' ..." % (p)
pkg = ubuntu.getSourcePackage(name=p)
+ print "Adding bug task for '%s' ..." % (p)
t = bug.lpbug.addTask(target=pkg)
# Nominate for all active series
@@ -198,12 +199,14 @@ class CreateCveTracker(StdApp):
sc = ubuntu.series_collection
for s in sc:
if s.active:
+ print "Adding nomination for '%s' ..." % (s.name)
nomination = bug.lpbug.addNomination(target=s)
+ print "Approving nomination for '%s' ..." % (s.name)
if nomination.canApprove():
nomination.approve()
if 'staging' in self.cfg:
- print("https://bugs.qastaging.launchpad.net/bugs/%s" % (bug.id))
+ print("https://qastaging.launchpad.net/bugs/%s" % (bug.id))
else:
print("https://bugs.launchpad.net/bugs/%s" % (bug.id))
--
1.7.4.1
--
Kees Cook
Ubuntu Security Team
--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team