From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81143ECE58E for ; Fri, 11 Oct 2019 12:24:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B58A2190F for ; Fri, 11 Oct 2019 12:24:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=bigon.be header.i=@bigon.be header.b="GERRSZ7D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbfJKMYU (ORCPT ); Fri, 11 Oct 2019 08:24:20 -0400 Received: from ithil.bigon.be ([163.172.57.153]:38266 "EHLO ithil.bigon.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbfJKMYU (ORCPT ); Fri, 11 Oct 2019 08:24:20 -0400 Received: from localhost (localhost [IPv6:::1]) by ithil.bigon.be (Postfix) with ESMTP id 3AD771FDEF for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=key1; t=1570796658; x=1572611059; bh=lCe/QdKMKTJJ0Mvq3R+fNDqK3YPTbyqcpzMP0A5cGzk=; b=GERRSZ7DoWxS EYrT2pj4ShIl+q6bQKfENMRS74cvWh9Zf5qbqcRNlqL6IepXtPdYyceyEGsgm09M 0c7Hz0CGFQskBn1VeerMiJf9Ere4wciyf6jPq5gtxDbXO2Dy9WisvW7LRoF2Km2+ lfwgOGUvayNF2txan0Ld8wE7eMr7jUk= Received: from ithil.bigon.be ([IPv6:::1]) by localhost (ithil.bigon.be [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id DoBkZtuRX7Ma for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) Received: from edoras.bigon.be (unknown [193.53.238.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bigon@bigon.be) by ithil.bigon.be (Postfix) with ESMTPSA for ; Fri, 11 Oct 2019 14:24:18 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 21a71 by edoras.bigon.be (DragonFly Mail Agent v0.12); Fri, 11 Oct 2019 14:24:16 +0200 From: Laurent Bigonville To: selinux-refpolicy@vger.kernel.org Subject: [PATCH 04/10] Allow realmd_t to read localization files Date: Fri, 11 Oct 2019 14:24:10 +0200 Message-Id: <20191011122416.14651-4-bigon@debian.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191011122416.14651-1-bigon@debian.org> References: <20191011122416.14651-1-bigon@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Archived-At: List-Archive: List-Post: From: Laurent Bigonville ---- 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 --- 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) -- 2.23.0