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=-8.2 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 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 B5170C43441 for ; Sat, 10 Nov 2018 00:43:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BF352081C for ; Sat, 10 Nov 2018 00:43:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="fZD0Pfm/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BF352081C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ieee.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728001AbeKJK0P (ORCPT ); Sat, 10 Nov 2018 05:26:15 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39797 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727730AbeKJK0P (ORCPT ); Sat, 10 Nov 2018 05:26:15 -0500 Received: by mail-qk1-f196.google.com with SMTP id e4so4839647qkh.6 for ; Fri, 09 Nov 2018 16:43:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2impMM1J27EOTi9MEx0HE1Em8Nok1bgy/IAUsPEQG3c=; b=fZD0Pfm/C2bUp7K+JN+PFgCnJs0wTKfB9rgwe1AVE8cKxi/SBcgjrN3nmslLUz2GSO RUaqtpcadH/TBHxZ8u02NAjbXVFINtdpAeyxw+AL6VOqCclnm9dMeOOVcjyuOy6qeFjU KtDNAAGCTYtAWW6w9HhVNPPjxbFawAExWA3g8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2impMM1J27EOTi9MEx0HE1Em8Nok1bgy/IAUsPEQG3c=; b=lF18dsdGDOyhjSJ7eCjCSudM2LL8j8MAsvzyU9gsirutztaRVF1E4kNpr0faQxyyPg bjZT9tCUEFvKKs5TWfFGGlV8zkjuH+6sZMROTvHLifzNYRa6aQ/pFXnRJqLgELEtt2U6 Up2PYhGkijtTMm6uq5JImfiv5Uomw3MIXTdTAXL4mDh+jZjb7byKQb+HFTK49+c488y1 ICisC+wgDl9KzmxnnnaHG+oJA/6yr25EhLaP1bf5OrK2wYo74x6S/6kIYw/UlT8Nmk9x rGMV+1kv/9ExoEuIzqJrwrtqPILG3dKzwpwQs15f5QrJnjWHtoZD0A9SBlC98Q88rqfa Jj3A== X-Gm-Message-State: AGRZ1gL8KZJMP53FgjkxoqWkku0EWXqOCXHQnk5/kbk/huvdj5Uj0UY5 YsTQoeFcBHH+tRQ6Tk+JpZetRg== X-Google-Smtp-Source: AJdET5cnJCyxu6F4V3jfT9tM3C4H9HQ6dwhnu91NaJ/icweuAIxJIWzvWykTUGyB5GgBcf/JQ586kA== X-Received: by 2002:a0c:fb4c:: with SMTP id b12mr10765928qvq.177.1541810590239; Fri, 09 Nov 2018 16:43:10 -0800 (PST) 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 h41sm4633213qte.83.2018.11.09.16.43.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 16:43:09 -0800 (PST) Subject: Re: [PATCH 1/2] dnsmasq: Require log files to have .log suffix To: Petr Vorel , selinux-refpolicy@vger.kernel.org Cc: Dan Walsh References: <20181107205736.21748-1-pvorel@suse.cz> From: Chris PeBenito Message-ID: <5137d6d9-5bdb-a21d-97c9-2e6c8a61c2a6@ieee.org> Date: Fri, 9 Nov 2018 19:25:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181107205736.21748-1-pvorel@suse.cz> 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 11/07/2018 03:57 PM, Petr Vorel wrote: > Signed-off-by: Petr Vorel > --- > policy/modules/services/dnsmasq.fc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/policy/modules/services/dnsmasq.fc b/policy/modules/services/dnsmasq.fc > index 29d71c91..4c34df3c 100644 > --- a/policy/modules/services/dnsmasq.fc > +++ b/policy/modules/services/dnsmasq.fc > @@ -13,7 +13,7 @@ > /var/lib/misc/dnsmasq\.leases -- gen_context(system_u:object_r:dnsmasq_lease_t,s0) > /var/lib/dnsmasq(/.*)? gen_context(system_u:object_r:dnsmasq_lease_t,s0) > > -/var/log/dnsmasq.* -- gen_context(system_u:object_r:dnsmasq_var_log_t,s0) > +/var/log/dnsmasq(.*)?\.log -- gen_context(system_u:object_r:dnsmasq_var_log_t,s0) > > /run/dnsmasq.* -- gen_context(system_u:object_r:dnsmasq_var_run_t,s0) > /run/libvirt/network(/.*)? gen_context(system_u:object_r:dnsmasq_var_run_t,s0) This would exclude rotated logs, e.g. something like dnsmasq.log.1 or dnsmasq.log.1.gz, which would be undesirable. -- Chris PeBenito