From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8E7FA138334 for ; Mon, 16 Dec 2019 17:48:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0860E096F; Mon, 16 Dec 2019 17:48:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C4860E096B for ; Mon, 16 Dec 2019 17:48:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B2D0434D8CF for ; Mon, 16 Dec 2019 17:48:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB1FC992 for ; Mon, 16 Dec 2019 17:48:27 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1576501991.bc0f3d5ffd39f0ffe8fc386fbb619337f3923718.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/realmd.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: bc0f3d5ffd39f0ffe8fc386fbb619337f3923718 X-VCS-Branch: master Date: Mon, 16 Dec 2019 17:48:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2162cd34-c39d-4651-836c-8a2b1c39fbfe X-Archives-Hash: 14c1bcf498c973df278e08c8cafff4e2 commit: bc0f3d5ffd39f0ffe8fc386fbb619337f3923718 Author: Laurent Bigonville bigon be> AuthorDate: Sat Oct 5 11:27:24 2019 +0000 Commit: Jason Zaman gentoo 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.be> Signed-off-by: Jason Zaman 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)