Compare commits

...

14 Commits
master ... f27

Author SHA1 Message Date
Petr Lautrbach bf4ea6d308 setroubleshoot-3.3.17-1
- Set auto_save_interval to 5 (#1548913,#1523406,#1539180)
- seapplet: Try send and close notifications (#1541624,#1541719,#1544222,#1539367)
2018-02-26 21:23:41 +01:00
Petr Lautrbach 7f36fd34fe setroubleshoot-3.3.16-1
- Do not show status_icon when there's no alert (#1543758)
- Run seapplet only on SELinux enabled system (#1541631)
- Use context in Gio.AppInfo.launch (#1542156)
2018-02-20 10:23:36 +01:00
Petr Lautrbach e7de89a4f9 Spec file cleanup
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
2018-02-20 10:22:28 +01:00
Igor Gnatenko a846604058 Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-20 10:21:31 +01:00
Petr Lautrbach fb79019256 List gcc in BuildRequires
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/
https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
2018-02-19 13:37:47 +01:00
Petr Lautrbach dbfef2f329 setroubleshoot-3.3.15
- Rewrite seapplet to Python3 to use Notify and Gtk 3.0
- Add setroubleshoot-seappletlegacy with legacy seappletlegacy based on Gtk 2
- sealert: Finish dbus communication after error
2018-01-22 09:23:51 +01:00
Igor Gnatenko 61f1b10956 Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-22 08:47:55 +01:00
Vit Mojzis 99631a064d Add readme dealing with translations
- Clarify relation between individual repositories containing
translations
- Explain how to use zanata interface on a few important use-cases
2018-01-22 08:45:59 +01:00
Petr Lautrbach 654ed5545e setroubleshoot-3.3.14-1.fc27
- Increase the space for suggested solutions in sealert
- Highlight suggestions with the highest confidence
- Remove additional "If " string from plugin messages
- Fix sealert message for process2 (#1507909)
- Do not change if_string[0] to lowercase
- Do not split If sentences to framework and plugins - requires
  setroubleshoot-plugins 3.3.8 at least (rhbz#1210243, rhbz#1322734,
  hbz#1115510)
- Update translations
2017-11-23 09:16:06 +01:00
Petr Lautrbach f05d91cba4 setroubleshoot-3.3.12-5
- Install style.css file (rhbz#1492761)
2017-09-19 08:11:33 +02:00
Petr Lautrbach 7459b1a555 Install style.css into the right location
Resolves: rhbz#1492761
Fixes:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/setroubleshoot/browser.py", line 821, in on_previous_button_clicked
    self.show_current_alert()
  File "/usr/lib/python3.6/site-packages/setroubleshoot/browser.py", line 794, in show_current_alert
    rb = self.add_row(p, alert, args)
  File "/usr/lib/python3.6/site-packages/setroubleshoot/browser.py", line 456, in add_row
    cssProvider.load_from_path('/usr/share/setroubleshoot/gui/style.css')
GLib.GError: gtk-css-provider-error-quark: <broken file>:1:0Failed to import: Error opening file /usr/share/setroubleshoot/gui/style.css: No such file or directory (2)
2017-09-19 08:09:46 +02:00
Petr Lautrbach 1d9814b7cb setroubleshoot-3.3.12-4
- Don't stop when the plugin directory is empty
- Fix missing margins on Troubleshoot window
- Resize all solutions panels horizontally
- Fix missing priority color for proposed solutions
- Set translation domain for Gtk.Builder() object to have strings
  correctly translated
- Make labels on GtkButtons translatable
- Handla all exceptions from do_analyze_logfile()
- Fix semi-translated messages
- Do not catch POSIX signals (rhbz#1366004, rhbz#1419245)
2017-09-15 11:00:43 +02:00
Petr Lautrbach e8f87acc6c Backport fixes from 3.3.12
Do not backport string changes since we are after string freeze phase

- Don't stop when the plugin directory is empty
- Fix missing margins on Troubleshoot window
- Resize all solutions panels horizontally
- Fix missing priority color for proposed solutions
- Set translation domain for Gtk.Builder() object to have strings
  correctly translated
- Make labels on GtkButtons translatable
- Handla all exceptions from do_analyze_logfile()
- Fix semi-translated messages
- Do not catch POSIX signals (rhbz#1366004, rhbz#1419245)
2017-09-15 10:56:05 +02:00
Petr Lautrbach 8782905a75 Remove unused patches 2017-09-15 10:25:40 +02:00
6 changed files with 99 additions and 79 deletions

4
.gitignore vendored
View File

@ -197,3 +197,7 @@ setroubleshoot-2.2.93.tar.gz
/setroubleshoot-3.3.10.tar.gz
/setroubleshoot-3.3.11.tar.gz
/setroubleshoot-3.3.12.tar.gz
/setroubleshoot-3.3.14.tar.gz
/setroubleshoot-3.3.15.tar.gz
/setroubleshoot-3.3.16.tar.gz
/setroubleshoot-3.3.17.tar.gz

View File

@ -1,26 +0,0 @@
From a1d303150b341d6cfdc1f7d36c38004cee01fdb7 Mon Sep 17 00:00:00 2001
From: Dominik Perpeet <dperpeet@redhat.com>
Date: Wed, 6 Apr 2016 10:09:55 +0200
Subject: [PATCH] setroubleshoot: Ensure that dbus string param isn't null
An alert's level can be None, but DBUS doesn't allow that for string parameters.
---
framework/src/setroubleshoot/server.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/src/setroubleshoot/server.py b/framework/src/setroubleshoot/server.py
index 87722c9..e788d41 100755
--- a/framework/src/setroubleshoot/server.py
+++ b/framework/src/setroubleshoot/server.py
@@ -579,7 +579,7 @@ Return an alert with summary, audit events, fix suggestions
return (alert.local_id, alert.summary(), alert.report_count,
audit_events, plugins,
- str(alert.first_seen_date), str(alert.last_seen_date), alert.level
+ str(alert.first_seen_date), str(alert.last_seen_date), alert.level or ''
)
--
2.7.3

View File

@ -1,30 +0,0 @@
From 4271b72e879ca25ba244036c0c2b6b9dbf7b2edf Mon Sep 17 00:00:00 2001
From: Petr Lautrbach <plautrba@redhat.com>
Date: Thu, 14 Apr 2016 10:36:14 +0200
Subject: [PATCH 2/2] framework: Drop unwanted debug message in sedispatch
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1326985
---
framework/src/sedispatch.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/framework/src/sedispatch.c b/framework/src/sedispatch.c
index 6417a10..bec3aa9 100644
--- a/framework/src/sedispatch.c
+++ b/framework/src/sedispatch.c
@@ -147,10 +147,9 @@ int main(int argc __attribute__((unused)), char *argv[] __attribute__((unused)))
FD_SET(0, &rfds);
tv.tv_sec = 3;
tv.tv_usec = 0;
- if (select(1, &rfds, NULL, NULL, &tv) == 0) {
- syslog(LOG_ERR, "timeout flush");
+ if (select(1, &rfds, NULL, NULL, &tv) == 0)
+ /* The timeout occurred, the event is probably complete */
auparse_flush_feed(au);
- }
}
if (feof(stdin))
break;
--
2.7.3

29
README.translations Normal file
View File

@ -0,0 +1,29 @@
Setroubleshoot translations currently live in the following locations:
- https://fedora.zanata.org/project/view/setroubleshoot
- contains translations for both stable (RHEL) and master (Fedora) branches
- maintains large number of languages (several of which do not actually contain any translated strings)
- updated by community and partially by RH localization effort
- setroubleshoot source repositories (https://pagure.io/setroubleshoot and https://github.com/fedora-selinux/setroubleshoot)
- is kept up-to-date with fedora.zanata
How to update source files on fedora.zanata:
$ git clone git@github.com:fedora-selinux/setroubleshoot.git
$ cd setroubleshoot/framework
# Update Makefile
$ ./autogen.sh
# generate new potfile
$ cd po
$ make setroubleshoot.pot
# Repeat the process for plugins
# Push potfiles to zanata
$ zanata-cli push --push-type source
How to pull new translations from zanata
$ git clone git@github.com:fedora-selinux/setroubleshoot.git
$ cd setroubleshoot
# Make sure "zanata.xml" file pointing to corresponding translations branch is present
# Optionally update source files on zanata
# Pull new translations from zanata
$ zanata-cli -e pull --pull-type trans

View File

@ -1,19 +1,20 @@
Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot
Version: 3.3.12
Release: 3%{?dist}
Version: 3.3.17
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://pagure.io/setroubleshoot
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
Source1: %{name}.tmpfiles
BuildRequires: perl-XML-Parser
BuildRequires: gcc
BuildRequires: libcap-ng-devel
BuildRequires: intltool gettext python3 python3-devel
BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel gtk3-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel
BuildRequires: desktop-file-utils dbus-glib-devel gtk2-devel libnotify-devel audit-libs-devel libselinux-devel polkit-devel
BuildRequires: libselinux-python3 python3-pydbus python3-gobject gtk3-devel
Requires: %{name}-server = %{version}-%{release}
Requires: gtk2
Requires: gtk3, libnotify
Requires: libreport-gtk >= 2.2.1-2, libreport-python3
Requires: python3-gobject, python3-pydbus
Requires(post): desktop-file-utils
Requires(post): dbus
Requires(postun): desktop-file-utils
@ -56,31 +57,22 @@ to user preference. The same tools can be run on existing log files.
%post
touch --no-create %{_datadir}/icons/hicolor || :
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
%systemd_post auditd.service
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%systemd_postun_with_restart auditd.service
%posttrans
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%prep
%autosetup -p 2
%build
%configure PYTHON=%{__python3}
%configure PYTHON=%{__python3} --enable-seappletlegacy=yes
make
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} PREFIX=/usr install
desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{pkgvardatadir}
mkdir -p %{buildroot}%{_rundir}/setroubleshoot
@ -95,9 +87,8 @@ install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
%package server
Summary: SELinux troubleshoot server
Group: Applications/System
Requires: %{name}-plugins >= 3.3.4
Requires: %{name}-plugins >= 3.3.9
Requires: audit >= 1.2.6-3
Requires: audit-libs-python3 >= 1.2.6-3
Requires: libxml2-python3
@ -131,9 +122,6 @@ getent passwd %{username} >/dev/null || useradd -r -U -s /sbin/nologin -d %{pkgv
%triggerun server -- %{name}-server < 3.2.24-4
chown -R setroubleshoot:setroubleshoot %{pkgvardatadir}
%clean
rm -rf %{buildroot}
%files server -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/sealert
@ -200,8 +188,63 @@ rm -rf %{buildroot}
%attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
%doc AUTHORS COPYING ChangeLog DBUS.md NEWS README TODO
%package legacy
Summary: SELinux troubleshoot legacy applet
Requires: gtk2
Requires: %{name} = %{version}-%{release}
%description legacy
SELinux troubleshoot legacy applet
%files legacy
%defattr(-,root,root,-)
%{_bindir}/seappletlegacy
%changelog
* Mon Feb 26 2018 Petr Lautrbach <plautrba@redhat.com> - 3.3.17-1
- Set auto_save_interval to 5 (#1548913,#1523406,#1539180)
- seapplet: Try send and close notifications (#1541624,#1541719,#1544222,#1539367)
* Tue Feb 20 2018 Petr Lautrbach <plautrba@redhat.com> - 3.3.16-1
- Do not show status_icon when there's no alert (#1543758)
- Run seapplet only on SELinux enabled system (#1541631)
- Use context in Gio.AppInfo.launch (#1542156)
* Fri Jan 19 2018 Petr Lautrbach <plautrba@redhat.com> - 3.3.15-1
- Rewrite seapplet to Python3 to use Notify and Gtk 3.0
- Add setroubleshoot-seappletlegacy with legacy seappletlegacy based on Gtk 2
- sealert: Finish dbus communication after error
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.14-2
- Remove obsolete scriptlets
* Sat Nov 18 2017 Petr Lautrbach <plautrba@redhat.com> - 3.3.14-1
- Increase the space for suggested solutions in sealert
- Highlight suggestions with the highest confidence
- Remove additional "If " string from plugin messages
- Fix sealert message for process2 (#1507909)
- Do not change if_string[0] to lowercase
- Do not split If sentences to framework and plugins - requires
setroubleshoot-plugins 3.3.8 at least (rhbz#1210243, rhbz#1322734,
hbz#1115510)
- Update translations
* Tue Sep 19 2017 Petr Lautrbach <plautrba@redhat.com> - 3.3.12-5
- Install style.css file (rhbz#1492761)
* Fri Sep 15 2017 Petr Lautrbach <plautrba@redhat.com> - 3.3.12-4
- Don't stop when the plugin directory is empty
- Fix missing margins on Troubleshoot window
- Resize all solutions panels horizontally
- Fix missing priority color for proposed solutions
- Set translation domain for Gtk.Builder() object to have strings
correctly translated
- Make labels on GtkButtons translatable
- Handla all exceptions from do_analyze_logfile()
- Fix semi-translated messages
- Do not catch POSIX signals (rhbz#1366004, rhbz#1419245)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (setroubleshoot-3.3.12.tar.gz) = 4538b5924b7564ca7d1543c39556042c42d605489cd158170f3c823ea0bc8d04c8a40d8048abc190962165e2f541ccdad9ebacde8087077d1fcd0ed7002665df
SHA512 (setroubleshoot-3.3.17.tar.gz) = ae0083163f909fad3d5ef91dd3c80f3263452e50dd314ab0f1e6394022cbe771111655919f7518fd1351dcc195929dd81b838436ef797174f5bf3baf4f9adf15