diff --git a/fix-don-t-pop-up-the-window-when-selinux-close.patch b/fix-don-t-pop-up-the-window-when-selinux-close.patch new file mode 100644 index 0000000000000000000000000000000000000000..24930178d96d148d1c4b837f50a209c422dff154 --- /dev/null +++ b/fix-don-t-pop-up-the-window-when-selinux-close.patch @@ -0,0 +1,34 @@ +From 46b0edde7a28a94caa28f39c3448772bda311be1 Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Thu, 13 Apr 2023 16:46:22 +0800 +Subject: [PATCH] fix(*): don't pop-up the window when selinux close (#51047) + +Signed-off-by: yangchenguang +--- + src/sealert | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +diff --git a/src/sealert b/src/sealert +index 7839367..8f9d87c 100755 +--- a/src/sealert ++++ b/src/sealert +@@ -104,10 +104,13 @@ def run_app(user): + + + def error(message): +- dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, +- gtk.BUTTONS_CLOSE, ++ gi.require_version('Gtk', GTK_VERSION) ++ from gi.repository import Gtk ++ ++ dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.QUESTION, ++ Gtk.ButtonsType.CLOSE, + message) +- dlg.set_position(gtk.WIN_POS_MOUSE) ++ dlg.set_position(Gtk.WindowPosition.MOUSE) + dlg.show_all() + dlg.run() + dlg.destroy() +-- +2.33.0 + diff --git a/setroubleshoot.spec b/setroubleshoot.spec index 6a88fb2e5e3b9ffd7153d8f19c2aaad7beac42e2..77cc67861d8d1a789d2ace44c7ad07ccc7457948 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -1,6 +1,6 @@ Name: setroubleshoot Version: 3.3.24 -Release: 3 +Release: 4 Summary: SELinux Trouble Shooting Tool License: GPLv2+ URL: https://pagure.io/setroubleshoot @@ -11,6 +11,7 @@ Source1: %{name}.tmpfiles Patch1: backport-0001-framework-Update-translations.patch Patch9000: Fix-config-file-to-deny-noraml-user-to-stop-Setroubleshootd.patch +Patch9001: fix-don-t-pop-up-the-window-when-selinux-close.patch BuildRequires: gcc libcap-ng-devel intltool gettext python3 python3-devel git BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel @@ -160,6 +161,9 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name} %{_mandir}/man1/seapplet.1.gz %changelog +* Fri Aug 11 2023 yeqinglong - 3.3.24-4 +- fix don't pop-up the window when selinux close. + * Mon Dec 27 2021 Hugel - 3.3.24-3 - Fix the problem when setroubleshoot is installed, or updated.