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=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED 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 2A25CC4360F for ; Sun, 24 Mar 2019 18:44:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EEE6E20880 for ; Sun, 24 Mar 2019 18:44:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="GjDWqi3g" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbfCXSoF (ORCPT ); Sun, 24 Mar 2019 14:44:05 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:44855 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbfCXSoF (ORCPT ); Sun, 24 Mar 2019 14:44:05 -0400 Received: by mail-qt1-f194.google.com with SMTP id w5so7898434qtb.11 for ; Sun, 24 Mar 2019 11:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gEReP+AP3HVZCq9FjoVyZ3tcixRy9Elejg8naJG7zBg=; b=GjDWqi3gWHqROU0c8IGSHA/70vhfOqCKjpKEFyJ9SximjISvUvs1e6MFoVDmnY/eFH CWunwOcBoPtsuSHpbC3QD3Ni1g+240tFq9zc8h8l7eIQt1n2hlLAqNgCQJpxIP859RtF yhYeliMSHy/RekE2UTNVQRynMfZyLqRYvbA2Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gEReP+AP3HVZCq9FjoVyZ3tcixRy9Elejg8naJG7zBg=; b=IFdDbyw3su+lsjfYZMmggVX1YFVmOJMWcw+3Hg/Tpr1WgxgdP/3IB2nS1jM+1NAC2/ OQCqzCH3oUsrsAwXhuYnZZ41loaO9B2+Ox4njnb2IO5dyQvFt2Fz2FSvCpObdbOK7l0c NXllskALQOyHRub3aBJGoon3MMsI2Yl6uEDPvw9Mlzm8AlGqm+UXtqRCcqlPihX1WkLP GcutLiCLPjYBX9be7MjMRF4Tra29Afs7xojmSTZCK7OEKoHB+QZA7EzoBDoh8cWhRjuW OG/M1JQyeSHOuWJNveBqT/6n/ObAzB+/oPveoErQjSf0eiq0t5bjC49SShWO4RSfpR1f tA7w== X-Gm-Message-State: APjAAAVkQYEtzw1tLsaPLfiEbJftq3cS0cOldiIvcgaj6pj9FUz7ruHH xZAiK6A5Pl5kNewvIHarHZfrMd1M6ko= X-Google-Smtp-Source: APXvYqz+nEaT2821u+lcf3EdEC4Q3hy+t/32w1gMo4xJ20faTzxFB85fagPBZojpKfijxOdh1R2/fA== X-Received: by 2002:a0c:aecf:: with SMTP id n15mr17242489qvd.1.1553453044434; Sun, 24 Mar 2019 11:44:04 -0700 (PDT) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id u16sm14082858qtc.84.2019.03.24.11.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 11:44:04 -0700 (PDT) Subject: Re: [PATCH 1/1] Resolve denial about logging to journal from dbus To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" References: <20190321182844.27557-1-dsugar@tresys.com> <20190321182844.27557-2-dsugar@tresys.com> From: Chris PeBenito Message-ID: <43ecb40c-acd0-73a9-fa5c-ab2d04380820@ieee.org> Date: Sun, 24 Mar 2019 14:39:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190321182844.27557-2-dsugar@tresys.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 3/21/19 2:29 PM, Sugar, David wrote: > type=AVC msg=audit(1553013821.597:9897): avc: denied { sendto } for pid=7377 comm="dbus-daemon" path="/dev/log" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=1 > > Signed-off-by: Dave Sugar > --- > policy/modules/services/dbus.te | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te > index 24d12c64..fd7e2436 100644 > --- a/policy/modules/services/dbus.te > +++ b/policy/modules/services/dbus.te > @@ -162,6 +162,9 @@ ifdef(`init_systemd', ` > # for /run/systemd/dynamic-uid/ > init_list_pids(system_dbusd_t) > init_read_runtime_symlinks(system_dbusd_t) > + > + # for journald /dev/log > + kernel_dgram_send(system_dbusd_t) > ') > > optional_policy(` Merged. -- Chris PeBenito