diff -Nru xdiagnose-2.5.2ubuntu0.1/bin/xdiagnose xdiagnose-2.5.3/bin/xdiagnose --- xdiagnose-2.5.2ubuntu0.1/bin/xdiagnose 2012-03-17 02:37:34.000000000 +0000 +++ xdiagnose-2.5.3/bin/xdiagnose 2013-04-23 22:14:38.000000000 +0000 @@ -59,6 +59,10 @@ sys.stderr.write("Could not open X display\n") sys.exit(1) + if os.getenv("USER") != "root": + sys.stderr.write("Error: Must run as superuser\n") + sys.exit(2) + # Run the application. if options.failure_to_start: app = XDiagnose() diff -Nru xdiagnose-2.5.2ubuntu0.1/debian/changelog xdiagnose-2.5.3/debian/changelog --- xdiagnose-2.5.2ubuntu0.1/debian/changelog 2012-10-01 22:34:48.000000000 +0000 +++ xdiagnose-2.5.3/debian/changelog 2013-04-23 22:14:04.000000000 +0000 @@ -1,3 +1,11 @@ +xdiagnose (2.5.3) precise-proposed; urgency=low + + * bin/xdiagnose: Exit with error if run as non-root. Otherwise, the + program will crash when it tries to write a new grub configuration. + (LP: #769419) + + -- Bryce Harrington Tue, 23 Apr 2013 15:13:13 -0700 + xdiagnose (2.5.2ubuntu0.1) precise-security; urgency=low * SECURITY UPDATE: fix insecure temporary file creation