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
This commit is contained in:
Petr Lautrbach 2025-02-28 17:06:32 +01:00
parent e9eecdd6ae
commit 62e85da2d0

View File

@ -1,2 +1,3 @@
d /run/setroubleshoot 711 setroubleshoot setroubleshoot -
d /var/lib/setroubleshoot 700 setroubleshoot setroubleshoot -
Z /var/lib/setroubleshoot - setroubleshoot setroubleshoot -