Fix the problem when setroubleshoot is installed, or updated
This commit is contained in:
parent
aab4459b50
commit
30f4015bab
@ -1,6 +1,6 @@
|
|||||||
Name: setroubleshoot
|
Name: setroubleshoot
|
||||||
Version: 3.3.20
|
Version: 3.3.20
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: SELinux Trouble Shooting Tool
|
Summary: SELinux Trouble Shooting Tool
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://pagure.io/setroubleshoot
|
URL: https://pagure.io/setroubleshoot
|
||||||
@ -82,19 +82,20 @@ install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
|
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
|
%postun
|
||||||
%systemd_postun_with_restart auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%pre server
|
%pre server
|
||||||
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
|
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
%systemd_post auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%postun server
|
%postun server
|
||||||
%systemd_postun_with_restart auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%triggerun server -- %{name}-server < 3.2.24-4
|
%triggerun server -- %{name}-server < 3.2.24-4
|
||||||
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
||||||
|
|
||||||
@ -155,6 +156,9 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
|||||||
%{_mandir}/man1/seapplet.1.gz
|
%{_mandir}/man1/seapplet.1.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 15 2020 panxiaohe <panxiaohe@huawei.com> - 3.3.20-3
|
||||||
- Fix config file to deny noraml user to stop Setroubleshootd.
|
- Fix config file to deny noraml user to stop Setroubleshootd.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user