Set right ownership on /var/lib/setroubleshoot
A system which uses rpm ostree doesn't install rpms but images which are pre-created in a build system. There's no guarantee that the build system has the same uid/gid mapping for setroubleshoot as the local system. systemd-tmpfiles's 'Z' type recursivelly sets the user and group ownership on every reboot. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2012943 Related: rhbz#2050723
This commit is contained in:
parent
82bb17b979
commit
9ac68dc5c4
@ -81,7 +81,7 @@ touch %{buildroot}%{pkgdatabase}
|
||||
touch %{buildroot}%{pkgvardatadir}/email_alert_recipients
|
||||
rm -rf %{buildroot}/usr/share/doc/
|
||||
# create /run/setroubleshoot on boot
|
||||
install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
|
||||
install -p -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
|
||||
%find_lang %{name}
|
||||
@ -121,9 +121,6 @@ getent passwd %{username} >/dev/null || useradd -r -U -s /sbin/nologin -d %{pkgv
|
||||
%postun server
|
||||
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||
|
||||
%triggerun server -- %{name}-server < 3.2.24-4
|
||||
chown -R setroubleshoot:setroubleshoot %{pkgvardatadir}
|
||||
|
||||
%files server -f %{name}.lang
|
||||
%{_bindir}/sealert
|
||||
%{_sbindir}/sedispatch
|
||||
|
@ -1 +1,2 @@
|
||||
d /run/setroubleshoot 711 setroubleshoot setroubleshoot -
|
||||
Z /var/lib/setroubleshoot - setroubleshoot setroubleshoot -
|
||||
|
Loading…
Reference in New Issue
Block a user