I added two scripts in \"logrotate.d\" directory for my application logs to be rotated. This is the config for one of them:
{
compress
SELinux is preventing /usr/sbin/logrotate from read access on the directory sites.
***** Plugin catchall (100. confidence) suggests ***************************
If you believe that logrotate should be allowed read access on the sites directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access.
Do
allow this access for now by executing:# grep logrotate /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp