aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2019-10-05 13:27:24 +0200
committerJason Zaman <perfinion@gentoo.org>2019-12-16 21:13:11 +0800
commitbc0f3d5ffd39f0ffe8fc386fbb619337f3923718 (patch)
tree2aa0c7635376ca0236dff9caeb05a801643f1e2b
parentAllow geoclue to log in syslog (diff)
downloadhardened-refpolicy-bc0f3d5f.tar.gz
hardened-refpolicy-bc0f3d5f.tar.bz2
hardened-refpolicy-bc0f3d5f.zip
Allow realmd_t to read localization files
---- time->Sat Oct 5 13:11:40 2019 type=AVC msg=audit(1570273900.483:148): avc: denied { open } for pid=1382 comm="realmd" path="/etc/locale.alias" dev="dm-1" ino=1047048 scontext=system_u:system_r:realmd_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 type=AVC msg=audit(1570273900.483:148): avc: denied { read } for pid=1382 comm="realmd" name="locale.alias" dev="dm-1" ino=1047048 scontext=system_u:system_r:realmd_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 type=AVC msg=audit(1570273900.483:148): avc: denied { read } for pid=1382 comm="realmd" name="locale.alias" dev="dm-1" ino=262415 scontext=system_u:system_r:realmd_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=lnk_file permissive=1 type=AVC msg=audit(1570273900.483:148): avc: denied { search } for pid=1382 comm="realmd" name="locale" dev="dm-1" ino=262056 scontext=system_u:system_r:realmd_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=dir permissive=1 ---- time->Sat Oct 5 13:11:40 2019 type=AVC msg=audit(1570273900.483:149): avc: denied { getattr } for pid=1382 comm="realmd" path="/etc/locale.alias" dev="dm-1" ino=1047048 scontext=system_u:system_r:realmd_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 ---- Signed-off-by: Laurent Bigonville <bigon@bigon.be> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
-rw-r--r--policy/modules/services/realmd.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/policy/modules/services/realmd.te b/policy/modules/services/realmd.te
index 5bc878b29..841b02a44 100644
--- a/policy/modules/services/realmd.te
+++ b/policy/modules/services/realmd.te
@@ -44,6 +44,9 @@ auth_use_nsswitch(realmd_t)
logging_send_syslog_msg(realmd_t)
+# Read /etc/locale.alias
+miscfiles_read_localization(realmd_t)
+
optional_policy(`
dbus_system_domain(realmd_t, realmd_exec_t)