Package: monit
Version: 1:5.20.0-4

On package installation, the log file /var/log/monit.log is created by
the post install script monit.postinst.
The SELinux context will not bet correctly set up.
Can you please either add something like

if [ -x /sbin/restorecon ]; then
           /sbin/restorecon /var/log/monit.log
fi

to restore the context or install the file via

intsall -o root -g adm -m 0640 /dev/null /var/log/monit.log

?

Kindly Regards,
         Christian Göttsche

Reply via email to