From 805f2d9cd4b8b8623bdb8f032a1d3bcb57b9a37f Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Thu, 3 Oct 2019 18:22:17 +0200 Subject: [PATCH] Allow the systemd dbus-daemon to talk to systemd Recent versions of dbus are started as Type=notify type=AVC msg=audit(03/10/19 15:32:40.347:64) : avc: denied { write } for pid=809 comm=dbus-daemon name=notify dev="tmpfs" ino=1751 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_runtime_t:s0 tclass=sock_file permissive=1 Signed-off-by: Laurent Bigonville --- policy/modules/services/dbus.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te index bb3dac7da..58b03757e 100644 --- a/policy/modules/services/dbus.te +++ b/policy/modules/services/dbus.te @@ -159,6 +159,9 @@ ifdef(`init_systemd', ` # for /run/systemd/dynamic-uid/ init_list_pids(system_dbusd_t) init_read_runtime_symlinks(system_dbusd_t) + + # Recent versions of dbus are started as Type=notify + init_write_runtime_socket(system_dbusd_t) ') optional_policy(`