commit: bc0f3d5ffd39f0ffe8fc386fbb619337f3923718
Author: Laurent Bigonville <bigon <AT> bigon <DOT> be>
AuthorDate: Sat Oct 5 11:27:24 2019 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 13:13:11 2019 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=bc0f3d5f
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 <AT> bigon.be>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
policy/modules/services/realmd.te | 3 +++
1 file changed, 3 insertions(+)
diff --git a/policy/modules/services/realmd.te
b/policy/modules/services/realmd.te
index 5bc878b2..841b02a4 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)