1 |
commit: 0ff48e66b630898f591d1ddef992e4ee868715f4 |
2 |
Author: Sugar, David <dsugar <AT> tresys <DOT> com> |
3 |
AuthorDate: Wed Mar 20 00:20:34 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 25 10:05:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0ff48e66 |
7 |
|
8 |
Allow ntpd to update timezone symlink |
9 |
|
10 |
type=AVC msg=audit(1553013821.624:9907): avc: denied { create } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 |
11 |
type=AVC msg=audit(1553013821.624:9908): avc: denied { rename } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" dev="dm-1" ino=714303 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 |
12 |
type=AVC msg=audit(1553013821.624:9908): avc: denied { unlink } for pid=16281 comm="systemd-timedat" name="localtime" dev="dm-1" ino=1063377 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 |
13 |
|
14 |
Signed-off-by: Dave Sugar <dsugar <AT> tresys.com> |
15 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
16 |
|
17 |
policy/modules/services/ntp.te | 1 + |
18 |
1 file changed, 1 insertion(+) |
19 |
|
20 |
diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te |
21 |
index f2df01a5..bf8d46a4 100644 |
22 |
--- a/policy/modules/services/ntp.te |
23 |
+++ b/policy/modules/services/ntp.te |
24 |
@@ -118,6 +118,7 @@ dev_rw_realtime_clock(ntpd_t) |
25 |
domain_use_interactive_fds(ntpd_t) |
26 |
domain_dontaudit_list_all_domains_state(ntpd_t) |
27 |
|
28 |
+files_manage_etc_symlinks(ntpd_t) |
29 |
files_read_etc_runtime_files(ntpd_t) |
30 |
files_read_usr_files(ntpd_t) |
31 |
files_list_var_lib(ntpd_t) |