aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSugar, David <dsugar@tresys.com>2019-03-21 18:29:27 +0000
committerJason Zaman <jason@perfinion.com>2019-03-25 18:05:25 +0800
commitb926696965951bb6543dabfbfe85eb469ffa2e51 (patch)
treea2f36e7b6f4a7198a6e278cfa9d3bd0041594695
parentResolve denial about logging to journal from chkpwd (diff)
downloadhardened-refpolicy-b926696965951bb6543dabfbfe85eb469ffa2e51.tar.gz
hardened-refpolicy-b926696965951bb6543dabfbfe85eb469ffa2e51.tar.bz2
hardened-refpolicy-b926696965951bb6543dabfbfe85eb469ffa2e51.zip
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@tresys.com> Signed-off-by: Jason Zaman <jason@perfinion.com>
-rw-r--r--policy/modules/services/dbus.te3
1 files changed, 3 insertions, 0 deletions
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(`