!19 20.03-LTS-SP3: fixes the problem when setroubleshoot is installed, or updated
Merge pull request !19 from Hugel/20.03-LTS-SP3
This commit is contained in:
commit
d04c0ddf0d
@ -1,6 +1,6 @@
|
||||
Name: setroubleshoot
|
||||
Version: 3.3.20
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: SELinux Trouble Shooting Tool
|
||||
License: GPLv2+
|
||||
URL: https://pagure.io/setroubleshoot
|
||||
@ -82,19 +82,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}
|
||||
|
||||
@ -155,6 +156,9 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
||||
%{_mandir}/man1/seapplet.1.gz
|
||||
|
||||
%changelog
|
||||
* Mon Dec 27 2021 Hugel <gengqihu1@huawei.com> - 3.3.20-4
|
||||
- Fix the problem when setroubleshoot is installed, or updated.
|
||||
|
||||
* Tue Dec 15 2020 panxiaohe <panxiaohe@huawei.com> - 3.3.20-3
|
||||
- Fix config file to deny noraml user to stop Setroubleshootd.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user