aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSugar, David <dsugar@tresys.com>2019-03-21 18:29:26 +0000
committerJason Zaman <jason@perfinion.com>2019-03-25 18:05:25 +0800
commitf3f0bbf1d5523ba85cfb5cf926a55f3a5df2a6f4 (patch)
tree6a8b374b29c7cbc4216b7d0fe90732036a408c05
parentAllow ntpd to update timezone symlink (diff)
downloadhardened-refpolicy-f3f0bbf1d5523ba85cfb5cf926a55f3a5df2a6f4.tar.gz
hardened-refpolicy-f3f0bbf1d5523ba85cfb5cf926a55f3a5df2a6f4.tar.bz2
hardened-refpolicy-f3f0bbf1d5523ba85cfb5cf926a55f3a5df2a6f4.zip
Resolve denial about logging to journal from chkpwd
type=AVC msg=audit(1553029357.588:513): avc: denied { sendto } for pid=7577 comm="unix_chkpwd" path="/dev/log" scontext=toor_u:staff_r:chkpwd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=0 Signed-off-by: Dave Sugar <dsugar@tresys.com> Signed-off-by: Jason Zaman <jason@perfinion.com>
-rw-r--r--policy/modules/system/authlogin.te5
1 files changed, 5 insertions, 0 deletions
diff --git a/policy/modules/system/authlogin.te b/policy/modules/system/authlogin.te
index 53f2264f..d105c58c 100644
--- a/policy/modules/system/authlogin.te
+++ b/policy/modules/system/authlogin.te
@@ -144,6 +144,11 @@ ifdef(`distro_ubuntu',`
')
')
+ifdef(`init_systemd',`
+ # for journald /dev/log
+ kernel_dgram_send(chkpwd_t)
+')
+
optional_policy(`
# apache leaks file descriptors
apache_dontaudit_rw_tcp_sockets(chkpwd_t)