1 |
commit: 1ec76423aa4ac2c17b12e6a69a2887c47bffac1c |
2 |
Author: Petr Vorel <pvorel <AT> suse <DOT> cz> |
3 |
AuthorDate: Mon Nov 12 08:47:30 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 10:56:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1ec76423 |
7 |
|
8 |
dnsmasq: Require log files to have .log suffix |
9 |
|
10 |
+ allow log rotate as well. |
11 |
|
12 |
Signed-off-by: Petr Vorel <pvorel <AT> suse.cz> |
13 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
14 |
|
15 |
policy/modules/services/dnsmasq.fc | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/policy/modules/services/dnsmasq.fc b/policy/modules/services/dnsmasq.fc |
19 |
index 278b880f..bfa87f4c 100644 |
20 |
--- a/policy/modules/services/dnsmasq.fc |
21 |
+++ b/policy/modules/services/dnsmasq.fc |
22 |
@@ -16,7 +16,7 @@ |
23 |
/var/lib/misc/dnsmasq\.leases -- gen_context(system_u:object_r:dnsmasq_lease_t,s0) |
24 |
/var/lib/dnsmasq(/.*)? gen_context(system_u:object_r:dnsmasq_lease_t,s0) |
25 |
|
26 |
-/var/log/dnsmasq.* -- gen_context(system_u:object_r:dnsmasq_var_log_t,s0) |
27 |
+/var/log/dnsmasq(.*)?\.log(\..+) -- gen_context(system_u:object_r:dnsmasq_var_log_t,s0) |
28 |
|
29 |
ifdef(`distro_gentoo',` |
30 |
# Fix bug 531836 - Needed to support dnssec in dnsmasq |