This patch modifies the behaviour of the original
ensure_logrotate_activated's
test_logrotate_conf_daily_setting sub-test it to:
* not just check if there's 'daily' setting present in /etc/logrotate.conf
(at least one uncommented occurrence of it),
* but also if it isn't followed by (uncommented) occurrence of some
of weekly / monthly / yearly rotate log directives, which have global
meaning (IOW aren't present in some of {} block sections).
Various possibilities / combinations of /etc/logrotate.conf file, that can
occur (wrt to multiple directives present) has been tested, and the check
seems to be working properly on both, RHEL-6 & RHEL-7 (more testing
appreciated of course).
Please review.
Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team
Show replies by date