Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp371058pxu; Sun, 22 Nov 2020 11:06:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7lhOHzykOrYljdxlCXr26kkbFafnuwPNuUpaknXGM99Hc4HBf3kwh0atsdKMVjowJWeT5 X-Received: by 2002:a17:906:36d6:: with SMTP id b22mr30025591ejc.313.1606071960231; Sun, 22 Nov 2020 11:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606071960; cv=none; d=google.com; s=arc-20160816; b=DZuhCIoA7pSSVmk72sswyWFNfTcWvKxnT1/vtP2fVvJDf4QiUX+VRy+1dQWgIgwRy4 XHiS7ksahGz9cKFQKroP+aXVPA7oGi8nhxTz/FV6shp5y3tKnxX/SnxImpS8Ti9jEmh4 qaCaeemw4VzQ8tnH2rrAPrDa7SApV0czG5eyKS9xwzxXFQnfhaLldZWwprsc2K1BTKfY uFcL5+g7MVVrW60tKfnKr65G08kMvBwKUd+tX8X9+BfRDx/RVl5SEu/EFvwczG4ynA2I c8nPiloE9wcPESfZ7PCtBE31y5FUHBd94szg9wgg/SwSr6lZc4HjRdzbwDeTxuojxXoj Pc1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=vgjiR5zVOvaRbUbP+NWK+jewPQe3BfnvizUpYDxpLgk=; b=l/r8zE1QE67j7lcGx86sHMVkHQE5w8A4lVjjC0tJT6ChN81tZuI+pGcEeEAgitvHe7 9bNIyJ7tXOn8oDgyC//X3REkEYtXiBDk46ABnOXKMV71DsKneR26zBpa1Ofv19+grXGr mTMllm+F7SD44w3VGofJuf7YGg4gc+AUYksjkJSF1mF8I7MyCBw5GsX/0lKiyUxVZRlX xD/w+AzSuc1xCiJyJvORZ32cu4UxCtUf0OlYTjVFgbMBs4KKF26P3SSueN+LVI7T1E0Y FC3PwZbeG3TIPSSgFIPGF7Qi2JIfgYany5k8cEcvy2eXRpJjdwd36Wk63sgAtnmhzPYk 8Obw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=QPF7r57L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl7si5161722ejb.3.2020.11.22.11.05.56; Sun, 22 Nov 2020 11:06:00 -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; dkim=pass header.i=@ieee.org header.s=google header.b=QPF7r57L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbgKVTE5 (ORCPT + 16 others); Sun, 22 Nov 2020 14:04:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbgKVTE5 (ORCPT ); Sun, 22 Nov 2020 14:04:57 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8446C0613CF for ; Sun, 22 Nov 2020 11:04:56 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id z188so3113796qke.9 for ; Sun, 22 Nov 2020 11:04:56 -0800 (PST) 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=vgjiR5zVOvaRbUbP+NWK+jewPQe3BfnvizUpYDxpLgk=; b=QPF7r57LAsf5EB+nUj5dNU0TguRJkZzJtxTh/vo8RhiUFLGEjNwVCXwYn/sKSf2O2N Vhd3TAOXTMJjFjUG3cr4b8mPJ2GKWOV6/yebXv5zv3IZw2bsaW/eCGzDd+bLBWhetgYv LrC2RUkexS5YvsaTIWuMLi14ZKgnAE3qgt3DI= 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=vgjiR5zVOvaRbUbP+NWK+jewPQe3BfnvizUpYDxpLgk=; b=h+C8y3CmGIrb+vZ6NZI8FnLZewrgdMq3wFfOnf5tYKphAeGuUfQVrMvmFuEltTfTL/ 6x2kvYYe6til10wDGwVsIvRaMlbvgl12FTXq+d7ERV3oe6xmG9WrDgPMn/S+0bkZBLQE pP1AbbaoZ+AVF3mDVl1oJ0DMhkXMbarnSnO03ia6WpCtmdkwg7c5xt4ZJAgNUZY359dh gSKfG4CbkvItGk3c95s+/scEzUdUKoJJDkxVP/ENYTiCTOfGXo3S8tSOCqQHrA7xmh60 wyOa9yVc/Luy0XgDqDx/DPVikv+lzye98kgszkZi/7ZlXsXeMGikPjkiAyES9W0k3EDb g3dQ== X-Gm-Message-State: AOAM530BsEGPUUbBacmZ71dHkLBqEAX6VSfxGiPfILq8whZcnOuU0uzw LQqbB7LIiHf6p+sQpPmrDcyTPzJ8wZwauQ== X-Received: by 2002:a37:a707:: with SMTP id q7mr7003294qke.5.1606071895830; Sun, 22 Nov 2020 11:04:55 -0800 (PST) Received: from fedora.pebenito.net (pool-96-234-173-17.bltmmd.fios.verizon.net. [96.234.173.17]) by smtp.gmail.com with ESMTPSA id a13sm3367095qtj.69.2020.11.22.11.04.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2020 11:04:55 -0800 (PST) Subject: Re: [PATCH 7/8] init: upstream fcontexts from gentoo policy To: Jason Zaman , selinux-refpolicy@vger.kernel.org References: <20201117034628.2461-1-jason@perfinion.com> <20201117034628.2461-7-jason@perfinion.com> From: Chris PeBenito Message-ID: Date: Sun, 22 Nov 2020 14:04:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201117034628.2461-7-jason@perfinion.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 11/16/20 10:46 PM, Jason Zaman wrote: > Signed-off-by: Jason Zaman > --- > policy/modules/system/init.fc | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc > index f1e6a61d0..63cf195e6 100644 > --- a/policy/modules/system/init.fc > +++ b/policy/modules/system/init.fc > @@ -44,8 +44,11 @@ ifdef(`distro_gentoo',` > /usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) > > ifdef(`distro_gentoo', ` > +/usr/lib/rc/cache(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) > +/usr/lib/rc/console(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) > /usr/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) > -/usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0) > +/usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0) > +/usr/sbin/openrc -- gen_context(system_u:object_r:rc_exec_t,s0) > /usr/sbin/openrc-init -- gen_context(system_u:object_r:init_exec_t,s0) > /usr/sbin/openrc-shutdown -- gen_context(system_u:object_r:init_exec_t,s0) > ') > @@ -79,6 +82,9 @@ ifdef(`distro_debian',` > > ifdef(`distro_gentoo', ` > /var/lib/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) > +/var/lib/ip6?tables(/.*)? gen_context(system_u:object_r:initrc_tmp_t,s0) > + > +/run/openrc(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) > /run/svscan\.pid -- gen_context(system_u:object_r:initrc_runtime_t,s0) > ') Merged. -- Chris PeBenito