1 |
commit: 4f0bb0f94aff4aa39bd3be21704100e12da6f042 |
2 |
Author: Laurent Bigonville <bigon <AT> bigon <DOT> be> |
3 |
AuthorDate: Thu Nov 1 15:09:00 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=4f0bb0f9 |
7 |
|
8 |
Allow ntpd_t to read init state |
9 |
|
10 |
With systemd-timesyncd, the following AVC denials are generated: |
11 |
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 |
12 |
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 |
13 |
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 |
14 |
|
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 39ea1c5e..76ce4da9 100644 |
22 |
--- a/policy/modules/services/ntp.te |
23 |
+++ b/policy/modules/services/ntp.te |
24 |
@@ -145,6 +145,7 @@ ifdef(`init_systemd',` |
25 |
init_dbus_chat(ntpd_t) |
26 |
init_get_system_status(ntpd_t) |
27 |
allow ntpd_t self:capability { fowner setpcap }; |
28 |
+ init_read_state(ntpd_t) |
29 |
init_reload(ntpd_t) |
30 |
|
31 |
# for /var/lib/systemd/clock |