3f55414718
- Upstream or pending upstream patches from Jan 25587-fix-off-by-one-parsing-error.patch 25616-x86-MCi_CTL-default.patch 25617-vtd-qinval-addr.patch 25688-x86-nr_irqs_gsi.patch - bnc#773393 - VUL-0: CVE-2012-3433: xen: HVM guest destroy p2m teardown host DoS vulnerability CVE-2012-3433-xsa11.patch - bnc#773401 - VUL-1: CVE-2012-3432: xen: HVM guest user mode MMIO emulation DoS 25682-x86-inconsistent-io-state.patch - bnc#762484 - VUL-1: CVE-2012-2625: xen: pv bootloader doesn't check the size of the bzip2 or lzma compressed kernel, leading to denial of service 25589-pygrub-size-limits.patch - Make it build with latest TeXLive 2012 with new package layout OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=196
74 lines
2.6 KiB
Diff
74 lines
2.6 KiB
Diff
# HG changeset patch
|
|
# User Guido Gunther <agx@sigxcpu.org>
|
|
# Date 1318330978 -3600
|
|
# Node ID 4b0907c6a08c348962bd976c2976257b412408be
|
|
# Parent 1185ae04b5aad429fd68d1872f404791df627965
|
|
pygrub: add debug flag
|
|
|
|
Debugging config file errors is tedious so help a bit by not silently
|
|
dropping parsing exceptions when --debug is given. Also intialize the
|
|
logging API at debug level in this case.
|
|
|
|
Signed-off-by: Guido Gunther <agx@sigxcpu.org>
|
|
Acked-by: Ian Campbell <ian.campbell@citrix.com>
|
|
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
|
|
|
|
Index: xen-4.1.3-testing/tools/pygrub/src/pygrub
|
|
===================================================================
|
|
--- xen-4.1.3-testing.orig/tools/pygrub/src/pygrub
|
|
+++ xen-4.1.3-testing/tools/pygrub/src/pygrub
|
|
@@ -13,7 +13,7 @@
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#
|
|
|
|
-import os, sys, string, struct, tempfile, re
|
|
+import os, sys, string, struct, tempfile, re, traceback
|
|
import copy
|
|
import logging
|
|
import platform
|
|
@@ -674,7 +674,7 @@ if __name__ == "__main__":
|
|
["quiet", "interactive", "not-really", "help",
|
|
"output=", "output-format=", "output-directory=",
|
|
"entry=", "kernel=",
|
|
- "ramdisk=", "args=", "isconfig"])
|
|
+ "ramdisk=", "args=", "isconfig", "debug"])
|
|
except getopt.GetoptError:
|
|
usage()
|
|
sys.exit(1)
|
|
@@ -688,6 +688,7 @@ if __name__ == "__main__":
|
|
entry = None
|
|
interactive = True
|
|
isconfig = False
|
|
+ debug = False
|
|
not_really = False
|
|
output_format = "sxp"
|
|
output_directory = "/var/run/xend/boot"
|
|
@@ -723,6 +724,8 @@ if __name__ == "__main__":
|
|
interactive = False
|
|
elif o in ("--isconfig",):
|
|
isconfig = True
|
|
+ elif o in ("--debug",):
|
|
+ debug = True
|
|
elif o in ("--output-format",):
|
|
if a not in ["sxp", "simple", "simple0"]:
|
|
print "unkonwn output format %s" % a
|
|
@@ -732,6 +735,9 @@ if __name__ == "__main__":
|
|
elif o in ("--output-directory",):
|
|
output_directory = a
|
|
|
|
+ if debug:
|
|
+ logging.basicConfig(level=logging.DEBUG)
|
|
+
|
|
if output is None or output == "-":
|
|
fd = sys.stdout.fileno()
|
|
else:
|
|
@@ -778,6 +784,8 @@ if __name__ == "__main__":
|
|
except:
|
|
# IOErrors raised by fsimage.open
|
|
# RuntimeErrors raised by run_grub if no menu.lst present
|
|
+ if debug:
|
|
+ traceback.print_exc()
|
|
fs = None
|
|
continue
|
|
|