commit: da4fa3729e32c0af8e0cda241986ba0600e584f1 Author: Luis Ressel <aranea <AT> aixah <DOT> de> AuthorDate: Fri Oct 12 22:23:04 2018 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sun Nov 11 23:17:31 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=da4fa372
Add fc for /var/lib/misc/logrotate.status Some distros configure logrotate to put its status file somewhere else than the default /var/lib/logrotate.status. Debian puts it in /var/lib/logrotate/, and Gentoo uses /var/lib/misc/. Signed-off-by: Jason Zaman <jason <AT> perfinion.com> policy/modules/admin/logrotate.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/admin/logrotate.fc b/policy/modules/admin/logrotate.fc index dac1af39..cd43ab28 100644 --- a/policy/modules/admin/logrotate.fc +++ b/policy/modules/admin/logrotate.fc @@ -9,4 +9,4 @@ /usr/sbin/logrotate -- gen_context(system_u:object_r:logrotate_exec_t,s0) /var/lib/logrotate(/.*)? gen_context(system_u:object_r:logrotate_var_lib_t,s0) -/var/lib/logrotate\.status -- gen_context(system_u:object_r:logrotate_var_lib_t,s0) +/var/lib/(misc/)?logrotate\.status -- gen_context(system_u:object_r:logrotate_var_lib_t,s0)