After upgrading maldet you get a cron error email like:
/etc/cron.daily/logrotate:
error: failed to rename /usr/local/maldetect/logs/inotify_log to /usr/local/maldetect/logs/inotify_log-20250225: Permission denied
This error is caused because the maldet logs no longer have the correct SELinux context. You can fix it using the commands below:
semanage fcontext -a -t var_log_t "/usr/local/maldetect/logs(/.*)?" > /dev/null 2>&1
restorecon -R -F /usr/local/maldetect/logs/ 2>/dev/null