Commit Graph

3 Commits

Author SHA1 Message Date
Petr Lautrbach
62e85da2d0 Create /var/lib/setroubleshoot directory
On image based system, /var/lib/setroubleshoot is not created during rpm
installation but needs to be created during boot using tmpfiles.d

Fixes:
    setroubleshoot[96947]: cannot create file /var/lib/setroubleshoot/setroubleshoot_database.xml [No such file or directory]
    setroubleshoot[96947]: cannot chmod /var/lib/setroubleshoot/setroubleshoot_database.xml to 600 [No such file or directory]
    setroubleshoot[96947]: cannot chown /var/lib/setroubleshoot/setroubleshoot_database.xml to setroubleshoot:setroubleshoot [No such file or directory]
    setroubleshoot[96947]: cannot create file /var/lib/setroubleshoot/email_alert_recipients [No such file or directory]
    setroubleshoot[96947]: cannot chmod /var/lib/setroubleshoot/email_alert_recipients to 600 [No such file or directory]
    setroubleshoot[96947]: cannot chown /var/lib/setroubleshoot/email_alert_recipients to setroubleshoot:setroubleshoot [No such file or directory]

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2346971
Resolves: RHEL-82117
2025-03-13 10:08:37 +01:00
Petr Lautrbach
e53fbd0923 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
2022-02-08 16:32:38 +01:00
Petr Lautrbach
0d5986d28b * Thu Apr 09 2015 Petr Lautrbach <plautrba@redhat.com> 3.2.23-1
- setroubleshootd is set to be run as setroubleshoot user instead of root user
- several bugfixes
2015-04-09 15:42:50 +02:00