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=-14.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 ED107C43461 for ; Wed, 9 Sep 2020 17:16:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98E6A2166E for ; Wed, 9 Sep 2020 17:16:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="PfKVFIa+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730227AbgIIRQF (ORCPT ); Wed, 9 Sep 2020 13:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730193AbgIIP2y (ORCPT ); Wed, 9 Sep 2020 11:28:54 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C74C061348 for ; Wed, 9 Sep 2020 08:26:11 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id cr8so1687232qvb.10 for ; Wed, 09 Sep 2020 08:26:11 -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=vNiSBQtNWb3Vqw6YZP7mDbOBfN0siV5yPB4Ux1fvJ+s=; b=PfKVFIa+zuwJMMXb6TvdlqNLOBTH3viCqJRlpYSE3rX5/20FTAdwXGnuXLLNm9YXGQ sa8a1D2mIiRvC0Kjr18aFaA1iwIJlHis1q32ZMmLMNtRXROnl06FyPHqoDZvt8EYmr6H PvTyL0bgSM5GPl0h4JrdyMdyZe0KNDnOjSG2Q= 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=vNiSBQtNWb3Vqw6YZP7mDbOBfN0siV5yPB4Ux1fvJ+s=; b=N6JjUBPkGjYCbNUJbG4kCBxQsNIV3PoICGjDRTGRCmXF8zNdl7V7Fha64TOHvp/jMr MYe8n/Io1Qrq42jMWeeGnjbtfszpEhVHp6DESkKAV7BxXYiyuRXQVIhCVZBNniteHVHK eOyBT5Ju5vm0cCz/N/G0Skq1s5gY3AYkw1pm3ldAYD8lHO5F4E0hQS5p2LBv3tQX/A7W jU8qGAJGxQQO4eLDZ/AZbG0lrclu9I5f+sqjuNNjKbn2xxYPyF0LeqfveaOp77w3C740 LO0nPt53Rw2TGl+bml8XFnUVeEvVKYUXa35KEv3zY1SFdcDcuc7PIUor2MmH7B+ZMoKX pFUw== X-Gm-Message-State: AOAM530tSlieYy9Szf6BBlrYv9P91aVVUNQMx7XXydWefP1ocW0M3VHL RxuwQ5OV+2SM5ynAxss/66A0EGf7JvjdFA== X-Google-Smtp-Source: ABdhPJxem81XvQDM/1aeY03Mb/vrOu2/kAqGs0rIhSUv7cpcgD02sufRdmal8FonLjvxdCzjvImR4Q== X-Received: by 2002:a0c:8091:: with SMTP id 17mr4639573qvb.19.1599665170113; Wed, 09 Sep 2020 08:26:10 -0700 (PDT) Received: from fedora.pebenito.net (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id o72sm2857549qka.113.2020.09.09.08.26.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Sep 2020 08:26:09 -0700 (PDT) Subject: Re: [PATCH] bind: add a few fc specs for unbound To: Dominick Grift , selinux-refpolicy@vger.kernel.org References: <20200909100026.611987-1-dominick.grift@defensec.nl> From: Chris PeBenito Message-ID: <81e6a6c6-1710-1d6b-d8ed-129ec85dd64f@ieee.org> Date: Wed, 9 Sep 2020 11:26:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200909100026.611987-1-dominick.grift@defensec.nl> 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 9/9/20 6:00 AM, Dominick Grift wrote: > unbound-checkconf is the unbound bind-checkconf equivalent > unbound-control is the unbound bind ndc equivalent > > Signed-off-by: Dominick Grift > --- > These surfaced when I was helping someone on IRC to solve some issues. I figure I spent enough time on it for it to warrant a fix upstream. > > policy/modules/services/bind.fc | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc > index 7c1df489..ce68a0af 100644 > --- a/policy/modules/services/bind.fc > +++ b/policy/modules/services/bind.fc > @@ -19,6 +19,8 @@ > /usr/bin/named-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) > /usr/bin/r?ndc -- gen_context(system_u:object_r:ndc_exec_t,s0) > /usr/bin/unbound -- gen_context(system_u:object_r:named_exec_t,s0) > +/usr/bin/unbound-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) > +/usr/bin/unbound-control -- gen_context(system_u:object_r:ndc_exec_t,s0) > > /usr/lib/systemd/system/named.*\.service -- gen_context(system_u:object_r:named_unit_t,s0) > /usr/lib/systemd/system/unbound.*\.service -- gen_context(system_u:object_r:named_unit_t,s0) > @@ -28,6 +30,8 @@ > /usr/sbin/named-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) > /usr/sbin/r?ndc -- gen_context(system_u:object_r:ndc_exec_t,s0) > /usr/sbin/unbound -- gen_context(system_u:object_r:named_exec_t,s0) > +/usr/sbin/unbound-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) > +/usr/sbin/unbound-control -- gen_context(system_u:object_r:ndc_exec_t,s0) > > /var/bind(/.*)? gen_context(system_u:object_r:named_cache_t,s0) > /var/bind/pri(/.*)? gen_context(system_u:object_r:named_zone_t,s0) Merged. -- Chris PeBenito