Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1173075pxb; Thu, 28 Jan 2021 09:37:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxadIS/l7OQRBPuWqdGYRKk9gpsWBY78IdMUph3VmKWyvnd/E0hy64HplCkTUkopxzGGucA X-Received: by 2002:a17:906:da02:: with SMTP id fi2mr507066ejb.230.1611855422224; Thu, 28 Jan 2021 09:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611855422; cv=none; d=google.com; s=arc-20160816; b=cU3YADwqZgNpFseJHhMe+11sYGzmxMPd9GHwTdtw6LJo8VtBBbx3TqqxbNcmaXTqyC plxTBDv8EIMmNEChmPqPlWw/aQ/btRcxQITsvjcUIw0T96slsfCZDhz88BWY4HTcHuOp JOP+zwOptGV9C/m985Za7ydII8STzfP92Ki3mGvovnoFFvOsITZFyvFpKVdGBd4rBr+G oTuSF442UVC6OZR3vX8orVSTS63lPZoLttfaBWr/jiij73O2/HBQW/vve2+32uSmTjZG GtNMkVd3abIMYJ0GKMTI7lkhbZgqwOTNMD/P4tw7vvojzAFIARucn8ozjoW96XuUkLaN nohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1/syX9WTHgfLu4wFT/ybXZCXCR6JTfgvT1PYlaydTto=; b=eJ+l2HcizpSYuqmSTMyGKM8elTb0pX80ObRqFR5SiKrxUqLgKOIMA+zeP6cMHNCJJO pOhtXNYJ4v/B9JBQHpzYogUkeL9OnwcQqekVh3BVXP88BN2xa4frGo53Czn2ej4G/1es UUun1/A/2sL5GOeB4GxJ+AsTF4D4gafnJiJc4paJTzWvazNotKzETubX+5S7SXcok+jN FEFyrfdZ77fDgQw4aVbNOiQVkVPlNUZ2r1OXo7A6XLUTZkn4z25VqqAyTUPs6/fg3mnE sq8RcrNvVQ+ej53C7KfBgtiaf6IoHDQp6PZdAaf95mbnU11xo6ymoD2ADiopYan/ynCX CBDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si4014146edz.362.2021.01.28.09.36.55; Thu, 28 Jan 2021 09:37:02 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233173AbhA1RgU (ORCPT + 16 others); Thu, 28 Jan 2021 12:36:20 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:60228 "EHLO mx1.polytechnique.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233049AbhA1Rfk (ORCPT ); Thu, 28 Jan 2021 12:35:40 -0500 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 7219F564F0F for ; Thu, 28 Jan 2021 18:34:53 +0100 (CET) Received: by mail-ot1-f43.google.com with SMTP id a109so5959283otc.1 for ; Thu, 28 Jan 2021 09:34:53 -0800 (PST) X-Gm-Message-State: AOAM533SkRp7iK1l+rn6L8yxDhd4UQWvQl0sFWf9mjQAynfXMdXYqF7p O+eASfn8+y7g7u99jB8pdOgZnYSKCvtQGbRDj3k= X-Received: by 2002:a05:6830:4121:: with SMTP id w33mr312437ott.361.1611855292336; Thu, 28 Jan 2021 09:34:52 -0800 (PST) MIME-Version: 1.0 References: <80d12d35-93b2-9227-eb4e-de0e2942654c@ieee.org> In-Reply-To: From: Nicolas Iooss Date: Thu, 28 Jan 2021 18:34:41 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] misc services patches with changes Dominick and Chris wanted To: Dominick Grift , Russell Coker , Chris PeBenito Cc: refpolicy Content-Type: text/plain; charset="UTF-8" X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Jan 28 18:34:53 2021 +0100 (CET)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.039711, queueID=DB230564F4D X-Org-Mail: nicolas.iooss.2010@polytechnique.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Thu, Jan 28, 2021 at 6:07 PM Dominick Grift wrote: > > Chris PeBenito writes: > > > On 1/26/21 10:15 PM, Russell Coker wrote: > >> I think this one is ready to merge. > >> Signed-off-by: Russell Coker > > > > > >> @@ -170,6 +172,7 @@ ifdef(`distro_suse',` > >> /var/log/roundcubemail(/.*)? > >> gen_context(system_u:object_r:httpd_log_t,s0) > >> /var/log/suphp\.log.* -- > >> gen_context(system_u:object_r:httpd_log_t,s0) > >> /var/log/z-push(/.*)? > >> gen_context(system_u:object_r:httpd_sys_rw_content_t,s0) > >> +/var/log/php7..-fpm.log -- > >> gen_context(system_u:object_r:httpd_log_t,s0) > > > > selint flagged this. Is ".." intended to be 2 "." metacharacters? > > I would probably just do: /var/log/php.*-fpm\.log.* and get it over with Or /var/log/php[0-9.]+-fpm\.log to match "something that looks like a version". The problem with "." is that it can match a "/", for subdirectories. Nicolas