commit: a51ba0a947d3824df1342367d7fd6fd955e6410b
Author: Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Mon Oct 26 04:27:25 2015 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Oct 26 04:27:25 2015 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a51ba0a9
system/logging: Remove duplicate filetrans on cron.log
policy/modules/system/logging.te:534:ERROR 'duplicate filename
transition for: filename_trans cron.log syslogd_t var_log_t:file' at
type_transition syslogd_t var_log_t:file cron_log_t "cron.log";
The cron type is gentoo only so make the logging one ifndef
policy/modules/system/logging.te | 2 ++
1 file changed, 2 insertions(+)
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
index 902ff63..d0c4d31 100644
--- a/policy/modules/system/logging.te
+++ b/policy/modules/system/logging.te
@@ -533,7 +533,9 @@ optional_policy(`
optional_policy(`
cron_manage_log_files(syslogd_t)
+ ifndef(`distro_gentoo',`
cron_generic_log_filetrans_log(syslogd_t, file, "cron.log")
+ ')
')
optional_policy(`