Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
09b46f1bb7 !20 22.03-LTS-Next: fixes the problem when setroubleshoot is installed, or updated
Merge pull request !20 from Hugel/22.03-LTS-Next
2021-12-27 08:41:15 +00:00
Hugel
9c9bdfe00c Fix the problem when setroubleshoot is installed, or updated 2021-12-27 11:31:57 +08:00
openeuler-ci-bot
d153a7e401 !11 【Mainline】Add "Requires: python3-pydbus" for subpackage setroubleshoot-server
From: @yixiangzhike
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
2021-03-16 22:28:23 +08:00
yixiangzhike
c76017c6c6 add "Requires: python3-pydbus" for subpackage setroubleshoot-server 2021-03-16 15:51:22 +08:00
openeuler-ci-bot
1a72a94f7d !10 【Mainline】Update to 3.3.24
From: @yixiangzhike
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
2021-01-25 17:11:01 +08:00
yixiangzhike
2ed19bcfed Update to 3.3.24 2021-01-22 14:07:58 +08:00
openeuler-ci-bot
9b4f93d74b !6 Fix config file to deny noraml user to stop Setroubleshootd
From: @panxh_purple
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
2020-12-16 17:42:26 +08:00
panxiaohe
a9717c116b Fix config file to deny noraml user to stop Setroubleshootd 2020-12-15 17:30:54 +08:00
openeuler-ci-bot
c3f3c35989 !4 fix the failure of building for audit downgrade
Merge pull request !4 from wangchen/master
2020-08-20 19:47:48 +08:00
wangchen2020
47d49085d0 fix the failure of building for audit downgrade 2020-08-20 09:54:18 +08:00
openeuler-ci-bot
f42368a055 !2 add yaml file
Merge pull request !2 from wangchen/wangchen1
2020-07-14 10:08:24 +08:00
wangchen2020
523842c3e5 add yaml file 2020-07-08 09:37:00 +08:00
6 changed files with 8914 additions and 9 deletions

View File

@ -0,0 +1,33 @@
From bf6d97e7f14bdefb7e9e889ae29e29b0d8484a16 Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Tue, 15 Dec 2020 14:14:57 +0800
Subject: [PATCH] Fix config file to deny noraml user to stop Setroubleshootd.
---
org.fedoraproject.Setroubleshootd.conf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/org.fedoraproject.Setroubleshootd.conf b/org.fedoraproject.Setroubleshootd.conf
index 65a0daa..fe0e2f4 100644
--- a/org.fedoraproject.Setroubleshootd.conf
+++ b/org.fedoraproject.Setroubleshootd.conf
@@ -9,12 +9,15 @@
</policy>
<policy user="root">
<allow send_destination="org.fedoraproject.Setroubleshootd"/>
+ <allow send_destination="org.fedoraproject.Setroubleshootd"
+ send_interface="org.fedoraproject.SetroubleshootdIface"
+ send_member="finish"/>
</policy>
<policy context="default">
<allow send_destination="org.fedoraproject.Setroubleshootd"
send_interface="org.fedoraproject.SetroubleshootdIface"
send_member="start"/>
- <allow send_destination="org.fedoraproject.Setroubleshootd"
+ <deny send_destination="org.fedoraproject.Setroubleshootd"
send_interface="org.fedoraproject.SetroubleshootdIface"
send_member="finish"/>
<allow send_destination="org.fedoraproject.Setroubleshootd"
--
1.8.3.1

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: setroubleshoot
Version: 3.3.20
Release: 2
Version: 3.3.24
Release: 3
Summary: SELinux Trouble Shooting Tool
License: GPLv2+
URL: https://pagure.io/setroubleshoot
@ -8,6 +8,10 @@ URL: https://pagure.io/setroubleshoot
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
Source1: %{name}.tmpfiles
Patch1: backport-0001-framework-Update-translations.patch
Patch9000: Fix-config-file-to-deny-noraml-user-to-stop-Setroubleshootd.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
BuildRequires: python3-libselinux python3-pydbus python3-gobject gtk3-devel xdg-utils
@ -26,7 +30,7 @@ SELinux Trouble Shooting Tool
Summary: SELinux troubleshoot server
Requires: %{name}-plugins >= 3.3.8
Requires: audit >= 3
Requires: audit >= 2.8.5
Requires: python3-audit
Requires: python3-libxml2
Requires: python3-rpm
@ -37,7 +41,7 @@ BuildRequires: python3-devel
Requires: python3-slip python3-systemd
Requires: python3-gobject >= 3.11
Requires: dbus
Requires: python3-dbus
Requires: python3-dbus python3-pydbus
Requires: polkit
Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd
@ -80,19 +84,20 @@ install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
%post
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
%systemd_post auditd.service
/sbin/service auditd reload >/dev/null 2>&1 || :
%postun
%systemd_postun_with_restart auditd.service
/sbin/service auditd reload >/dev/null 2>&1 || :
%pre server
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
%post server
%systemd_post auditd.service
/sbin/service auditd reload >/dev/null 2>&1 || :
%postun server
%systemd_postun_with_restart auditd.service
/sbin/service auditd reload >/dev/null 2>&1 || :
%triggerun server -- %{name}-server < 3.2.24-4
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
@ -127,14 +132,16 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
%exclude %{python3_sitelib}/%{name}/__pycache__/gui_utils.cpython*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/SetroubleshootFixit.py
%{_datadir}/%{name}/updater.py
%{_datadir}/%{name}/SetroubleshootPrivileged.py
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.Setroubleshootd.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.SetroubleshootPrivileged.conf
%attr(0700,setroubleshoot,setroubleshoot) %dir %{_localstatedir}/lib/%{name}
%ghost %attr(0600,setroubleshoot,setroubleshoot) %{_localstatedir}/lib/%{name}/setroubleshoot_database.xml
%ghost %attr(0644,setroubleshoot,setroubleshoot) %{_localstatedir}/lib/%{name}/email_alert_recipients
%config /etc/audit/plugins.d/sedispatch.conf
%{_datadir}/dbus-1/system-services/org.fedoraproject.Setroubleshootd.service
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootPrivileged.service
%{_datadir}/polkit-1/actions/org.fedoraproject.setroubleshootfixit.policy
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.SetroubleshootFixit.conf
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
@ -153,6 +160,21 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
%{_mandir}/man1/seapplet.1.gz
%changelog
* Mon Dec 27 2021 Hugel <gengqihu1@huawei.com> - 3.3.24-3
- Fix the problem when setroubleshoot is installed, or updated.
* Tue Mar 16 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.3.24-2
- add "Requires: python3-pydbus" for subpackage setroubleshoot-server
* Fri Jan 22 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.3.24-1
- update to 3.3.24
* Tue Dec 15 2020 panxiaohe <panxiaohe@huawei.com> - 3.3.20-4
- Fix config file to deny noraml user to stop Setroubleshootd.
* Thu Aug 20 2020 wangchen <wangchen137@huawei.com> - 3.3.20-3
- fix the failure of building for audit downgrade
* Thu Oct 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.3.20-2
- add COPYING to license directory

4
setroubleshoot.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: "https://pagure.io/setroubleshoot.git"
tag_prefix: "^setroubleshoot-"
seperator: