From 32e50088673e6bd4b1b5bae8704c0887800b51b6 Mon Sep 17 00:00:00 2001 From: Antoine Tenart Date: Mon, 5 Oct 2020 16:54:57 +0200 Subject: [PATCH] ntp: allow systemd-timesyn to watch dbus objects Fixes: avc: denied { watch } for pid=68 comm="systemd-timesyn" path="/run/dbus" dev="tmpfs" ino=2707 scontext=system_u:system_r:ntpd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir permissive=1 avc: denied { watch } for pid=68 comm="systemd-timesyn" path="/run/dbus/system_bus_socket" dev="tmpfs" ino=2716 scontext=system_u:system_r:ntpd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file permissive=1 Signed-off-by: Antoine Tenart --- policy/modules/services/ntp.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te index b178d915b..73363709e 100644 --- a/policy/modules/services/ntp.te +++ b/policy/modules/services/ntp.te @@ -143,6 +143,8 @@ ifdef(`init_systemd',` dbus_system_bus_client(ntpd_t) dbus_connect_system_bus(ntpd_t) + dbus_watch_system_bus_runtime_dirs(ntpd_t) + dbus_watch_system_bus_runtime_named_sockets(ntpd_t) init_dbus_chat(ntpd_t) init_get_system_status(ntpd_t) init_list_unit_dirs(ntpd_t)