setroubleshoot-3.3.21-1

- Fix AVC.__typeMatch to handle aliases properly
- Handle sockets with abstract path properly (#1775135)
This commit is contained in:
Vit Mojzis 2019-12-11 16:39:29 +01:00
parent 7573f5f239
commit 82e602850c
4 changed files with 8 additions and 47 deletions

1
.gitignore vendored
View File

@ -205,3 +205,4 @@ setroubleshoot-2.2.93.tar.gz
/setroubleshoot-3.3.18.tar.gz
/setroubleshoot-3.3.19.tar.gz
/setroubleshoot-3.3.20.tar.gz
/setroubleshoot-3.3.21.tar.gz

View File

@ -1,43 +0,0 @@
From a47895131484cfb5d3b6bbbce1e1f223d69c5dda Mon Sep 17 00:00:00 2001
From: Petr Lautrbach <plautrba@redhat.com>
Date: Tue, 27 Aug 2019 22:34:08 +0200
Subject: [PATCH] Use dbus.mainloop.glib.DBusGMainLoop() instead of dbus.glib
Fixes:
/usr/bin/sealert:32: DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated.
Instead, use this sequence:
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
import dbus.glib
---
framework/src/sealert | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/framework/src/sealert b/framework/src/sealert
index 4934df4..42dc976 100755
--- a/framework/src/sealert
+++ b/framework/src/sealert
@@ -29,7 +29,6 @@ from gi.repository import GObject, GLib
GLib.set_prgname('setroubleshoot')
import dbus
-import dbus.glib
import dbus.service
import errno as Errno
import gettext
@@ -42,6 +41,9 @@ import fcntl
import sys
import slip.dbus.service
+from dbus.mainloop.glib import DBusGMainLoop
+DBusGMainLoop(set_as_default=True)
+
from setroubleshoot.config import parse_config_setting, get_config
domain = get_config('general', 'i18n_text_domain')
kwargs = {}
--
2.23.0

View File

@ -3,13 +3,12 @@
Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot
Version: 3.3.20
Release: 4%{?dist}
Version: 3.3.21
Release: 1%{?dist}
License: GPLv2+
URL: https://pagure.io/setroubleshoot
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
Source1: %{name}.tmpfiles
Patch1: 0001-Use-dbus.mainloop.glib.DBusGMainLoop-instead-of-dbus.patch
BuildRequires: gcc
BuildRequires: libcap-ng-devel
BuildRequires: intltool gettext python3 python3-devel
@ -195,6 +194,10 @@ SELinux troubleshoot legacy applet
%{_bindir}/seappletlegacy
%changelog
* Wed Dec 11 2019 Vit Mojzis <vmojzis@redhat.com> - 3.3.21-1
- Fix AVC.__typeMatch to handle aliases properly
- Handle sockets with abstract path properly (#1775135)
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.20-4
- Rebuilt for Python 3.8.0rc1 (#1748018)

View File

@ -1 +1 @@
SHA512 (setroubleshoot-3.3.20.tar.gz) = e70e2efba8048133c2f3177038f706982532a11d3e6e9957437d94cfe1ddbfb3d8a5d05041ac3d5dc7e00b7f29613216ae5c302ad75f5b6d7c5a4de91b080aa5
SHA512 (setroubleshoot-3.3.21.tar.gz) = 96d64d3990f5faddbb47317e9045dcb0bd6a5fb8b42cf394b7866db8727993ea48e87f8b9b888641d5c4ea1efebc9738f25ac31fd4a980746f7506d532f78fc9