commit: 4f0bb0f94aff4aa39bd3be21704100e12da6f042 Author: Laurent Bigonville <bigon <AT> bigon <DOT> be> AuthorDate: Thu Nov 1 15:09:00 2018 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4f0bb0f9
Allow ntpd_t to read init state With systemd-timesyncd, the following AVC denials are generated: type=AVC msg=audit(01/11/18 15:44:39.564:48) : avc: denied { open } for pid=397 comm=systemd-timesyn path=/proc/1/sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 type=AVC msg=audit(01/11/18 15:44:39.564:48) : avc: denied { read } for pid=397 comm=systemd-timesyn name=sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 type=AVC msg=audit(01/11/18 15:44:39.564:49) : avc: denied { getattr } for pid=397 comm=systemd-timesyn path=/proc/1/sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 Signed-off-by: Jason Zaman <jason <AT> perfinion.com> policy/modules/services/ntp.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te index 39ea1c5e..76ce4da9 100644 --- a/policy/modules/services/ntp.te +++ b/policy/modules/services/ntp.te @@ -145,6 +145,7 @@ ifdef(`init_systemd',` init_dbus_chat(ntpd_t) init_get_system_status(ntpd_t) allow ntpd_t self:capability { fowner setpcap }; + init_read_state(ntpd_t) init_reload(ntpd_t) # for /var/lib/systemd/clock