diff --git a/0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch b/0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch new file mode 100644 index 0000000..32011ed --- /dev/null +++ b/0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch @@ -0,0 +1,50 @@ +From bf0c9f733cc6b98cc1ff753d61c4316653615705 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Fri, 4 Apr 2014 15:30:24 +0200 +Subject: [PATCH] Provide the policy rpm in Bugzilla bug reports + +This patch adds the policy rpm string to the user comments of an already +reported bug. + +Every comment will contain the following string: + + Version-Release number of selected component: + selinux-policy-X.XX.X-XXX.YYY.noarch + +Signed-off-by: Jakub Filak +--- + framework/src/setroubleshoot/browser.py | 3 ++- + framework/src/setroubleshoot/signature.py | 3 +++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/framework/src/setroubleshoot/browser.py b/framework/src/setroubleshoot/browser.py +index 06a7276..04c5d68 100644 +--- a/framework/src/setroubleshoot/browser.py ++++ b/framework/src/setroubleshoot/browser.py +@@ -966,7 +966,8 @@ class BugReport: + "setroubleshoot", + self.alert.get_hash(), + self.summary, +- content) ++ content, ++ package=self.alert.get_policy_rpm()) + + try: + rc = report.report(signature, report.io.GTKIO.GTKIO(self.parent.accounts)) +diff --git a/framework/src/setroubleshoot/signature.py b/framework/src/setroubleshoot/signature.py +index dcf701a..a9fe78b 100755 +--- a/framework/src/setroubleshoot/signature.py ++++ b/framework/src/setroubleshoot/signature.py +@@ -295,6 +295,9 @@ class SEFaultSignatureInfo(XmlSerialize): + for name in self.merge_include: + setattr(self, name, getattr(siginfo, name)) + ++ def get_policy_rpm(self): ++ return self.environment.policy_rpm; ++ + def get_hash_str(self): + return "%s,%s,%s,%s,%s" % (self.source, self.scontext.type, self.tcontext.type, self.tclass, ",".join(self.sig.access)) + +-- +1.8.3.1 + diff --git a/setroubleshoot.spec b/setroubleshoot.spec index 8294571..860f914 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -1,13 +1,14 @@ Summary: Helps troubleshoot SELinux problems Name: setroubleshoot Version: 3.2.18 -Release: 1%{?dist} +Release: 1.1%{?dist} License: GPLv2+ Group: Applications/System URL: https://fedorahosted.org/setroubleshoot # git clone git://git.fedorahosted.org/git/setroubleshoot.git; cd setroubleshoot # git archive --prefix setroubleshoot-3.0.10/426cf8ea7a38e8c5179981219d831368161b65f2 > setroubleshoot-3.0.10.tar.gz Source0: %{name}-%{version}.tar.gz +Patch1: 0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl-XML-Parser BuildRequires: libcap-ng-devel @@ -72,6 +73,7 @@ fi %prep %setup -q +%patch1 -p 2 -b .reports %build %configure @@ -169,6 +171,9 @@ rm -rf %{buildroot} %{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service %changelog +* Thu Apr 10 2014 Miroslav Grepl - 3.2.18-1.1 +- Add the policy rpm string to the user comments of an already reported bug from jfilak@redhat.com + * Tue Mar 25 2014 Dan Walsh - 3.2.18-1 - Stop sending syslog.LOG_DEBUG Messages unless loglevel is set to debug