commit:     b926696965951bb6543dabfbfe85eb469ffa2e51
Author:     Sugar, David <dsugar <AT> tresys <DOT> com>
AuthorDate: Thu Mar 21 18:29:27 2019 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 10:05:25 2019 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b9266969

Resolve denial about logging to journal from dbus

type=AVC msg=audit(1553013821.597:9897): avc:  denied  { sendto } for  pid=7377 
comm="dbus-daemon" path="/dev/log" 
scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 
tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=1

Signed-off-by: Dave Sugar <dsugar <AT> tresys.com>
Signed-off-by: Jason Zaman <jason <AT> perfinion.com>

 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 ae85b7ef..cfe63c4a 100644
--- a/policy/modules/services/dbus.te
+++ b/policy/modules/services/dbus.te
@@ -168,6 +168,9 @@ ifdef(`init_systemd', `
        # for /run/systemd/dynamic-uid/
        init_list_pids(system_dbusd_t)
        init_read_runtime_symlinks(system_dbusd_t)
+
+       # for journald /dev/log
+       kernel_dgram_send(system_dbusd_t)
 ')
 
 optional_policy(`

Reply via email to