Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/system/
Date: Wed, 02 Dec 2015 15:45:54
Message-Id: 1445833645.a51ba0a947d3824df1342367d7fd6fd955e6410b.swift@gentoo
1 commit: a51ba0a947d3824df1342367d7fd6fd955e6410b
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Mon Oct 26 04:27:25 2015 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 26 04:27:25 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a51ba0a9
7
8 system/logging: Remove duplicate filetrans on cron.log
9
10 policy/modules/system/logging.te:534:ERROR 'duplicate filename
11 transition for: filename_trans cron.log syslogd_t var_log_t:file' at
12 type_transition syslogd_t var_log_t:file cron_log_t "cron.log";
13
14 The cron type is gentoo only so make the logging one ifndef
15
16 policy/modules/system/logging.te | 2 ++
17 1 file changed, 2 insertions(+)
18
19 diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
20 index 902ff63..d0c4d31 100644
21 --- a/policy/modules/system/logging.te
22 +++ b/policy/modules/system/logging.te
23 @@ -533,7 +533,9 @@ optional_policy(`
24
25 optional_policy(`
26 cron_manage_log_files(syslogd_t)
27 + ifndef(`distro_gentoo',`
28 cron_generic_log_filetrans_log(syslogd_t, file, "cron.log")
29 + ')
30 ')
31
32 optional_policy(`