/var/opt/*/log is not recognized a _log_t selinux type dir and so the logrotate file you include in the EL7 package ends up causing selinux violations when it tries to rotate the logs.
There is really no need to try to put logs into your private /var/opt space. /var/log is perfectly suitable and plays well with selinux.
/var/opt/*/log
is not recognized a _log_t selinux type dir and so thelogrotate
file you include in the EL7 package ends up causing selinux violations when it tries to rotate the logs.There is really no need to try to put logs into your private
/var/opt
space./var/log
is perfectly suitable and plays well with selinux.