* Thu Apr 10 2014 Miroslav Grepl <mgrepl@redhat.com> - 3.2.18-1.1
- Add the policy rpm string to the user comments of an already reported bug from jfilak@redhat.com
This commit is contained in:
parent
f48447593a
commit
3a6a1a6ee6
50
0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch
Normal file
50
0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
From bf0c9f733cc6b98cc1ff753d61c4316653615705 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jakub Filak <jfilak@redhat.com>
|
||||||
|
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 <jfilak@redhat.com>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
@ -1,13 +1,14 @@
|
|||||||
Summary: Helps troubleshoot SELinux problems
|
Summary: Helps troubleshoot SELinux problems
|
||||||
Name: setroubleshoot
|
Name: setroubleshoot
|
||||||
Version: 3.2.18
|
Version: 3.2.18
|
||||||
Release: 1%{?dist}
|
Release: 1.1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: https://fedorahosted.org/setroubleshoot
|
URL: https://fedorahosted.org/setroubleshoot
|
||||||
# git clone git://git.fedorahosted.org/git/setroubleshoot.git; cd 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
|
# git archive --prefix setroubleshoot-3.0.10/426cf8ea7a38e8c5179981219d831368161b65f2 > setroubleshoot-3.0.10.tar.gz
|
||||||
Source0: %{name}-%{version}.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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: perl-XML-Parser
|
BuildRequires: perl-XML-Parser
|
||||||
BuildRequires: libcap-ng-devel
|
BuildRequires: libcap-ng-devel
|
||||||
@ -72,6 +73,7 @@ fi
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p 2 -b .reports
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -169,6 +171,9 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
|
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 10 2014 Miroslav Grepl <mgrepl@redhat.com> - 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 <dwalsh@redhat.com> - 3.2.18-1
|
* Tue Mar 25 2014 Dan Walsh <dwalsh@redhat.com> - 3.2.18-1
|
||||||
- Stop sending syslog.LOG_DEBUG Messages unless loglevel is set to debug
|
- Stop sending syslog.LOG_DEBUG Messages unless loglevel is set to debug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user