aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSugar, David <dsugar@tresys.com>2019-03-20 00:20:34 +0000
committerJason Zaman <jason@perfinion.com>2019-03-25 18:05:25 +0800
commit0ff48e66b630898f591d1ddef992e4ee868715f4 (patch)
tree071bc236e1f0dc8710b687a815f142e9403d2dab
parentAllow ntpd to update chronyd service (diff)
downloadhardened-refpolicy-0ff48e66b630898f591d1ddef992e4ee868715f4.tar.gz
hardened-refpolicy-0ff48e66b630898f591d1ddef992e4ee868715f4.tar.bz2
hardened-refpolicy-0ff48e66b630898f591d1ddef992e4ee868715f4.zip
Allow ntpd to update timezone symlink
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 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 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 Signed-off-by: Dave Sugar <dsugar@tresys.com> Signed-off-by: Jason Zaman <jason@perfinion.com>
-rw-r--r--policy/modules/services/ntp.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te
index f2df01a5..bf8d46a4 100644
--- a/policy/modules/services/ntp.te
+++ b/policy/modules/services/ntp.te
@@ -118,6 +118,7 @@ dev_rw_realtime_clock(ntpd_t)
domain_use_interactive_fds(ntpd_t)
domain_dontaudit_list_all_domains_state(ntpd_t)
+files_manage_etc_symlinks(ntpd_t)
files_read_etc_runtime_files(ntpd_t)
files_read_usr_files(ntpd_t)
files_list_var_lib(ntpd_t)