Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp371015pxu; Sun, 22 Nov 2020 11:05:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwOq6/WcERJK1UfIukfoxF0s+CWSooWpqYH7TIkML/HzRzvSSKzwMlTNR+hmIlKO9gK8PJ X-Received: by 2002:a05:6402:114b:: with SMTP id g11mr8628238edw.228.1606071955817; Sun, 22 Nov 2020 11:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606071955; cv=none; d=google.com; s=arc-20160816; b=OlS9aJ88ODQ/kHAYlN1oFWWhzslcHt1Z2V7q0eJtS/SfV2eeLQ77NHaob5wk235/kU uXFsaVeMfaK3ZKHG0IJzlSgTyVQUaC6Myy0fK+ogp30DIMJ0vyzsfiOfHrXanf6Qd+Ws M1nGsNbxP9o3QmWigut4wLnzPdqddtevVlHdFnQQ4qgRYU4vseIymjywFIgRNPZrUwoz CIDiirnmuAH6wJzSXjOdG9k+Vx+4TBkU/Va+5BsTFi4yVE4UNK4r5fmAK6YPFkAaoYAr Cx7S1bnQkWnm7/9H3IvXIAH07Lmb0sSZfahGTcDwhIOoTBoNzXnYUtp6Jr3zA+1PJVJb P+sQ== 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 :cc:to:subject:dkim-signature; bh=YyzANry9wKnt7dIL51Q9e/8k6xhAxTWEs3wg4g++JoY=; b=fcvqPE7fY25iWgkGNFNyoc7dL3ELgtUWsVl8intJ9BmwRZBdHD3sFiuNVj7bBsU+2a pTwD4//Z4uzs1XeNvMwtLrRjzXfX7shTw8U1aekFPRtBFFi8XMJdHqORiqFDP3+or/Uo +moyC2sNEuuRGVr0CM7RKTF7OyngPQ8egWgD3R1R91E+1i2y+93pANZlXUVE5hMiIHF6 +oa3dJ6CjRiIJ7GEOqhWNL8LX5dYPqCGDPk3MgrSyddDr6uMP1a9u6PXQ197jriYTYkm 9NVh8UB/5wkCceXi6XLgzyBVs6Ug1QBIjTw8bO3bG7D0htm9D+Fk/aDkzsrDUNhX3pTI 1oJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=DGHAgoDF; 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.51; Sun, 22 Nov 2020 11:05:55 -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=DGHAgoDF; 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 S1728149AbgKVTEz (ORCPT + 16 others); Sun, 22 Nov 2020 14:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbgKVTEy (ORCPT ); Sun, 22 Nov 2020 14:04:54 -0500 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BDFDC0613CF for ; Sun, 22 Nov 2020 11:04:54 -0800 (PST) Received: by mail-qk1-x743.google.com with SMTP id n132so14579798qke.1 for ; Sun, 22 Nov 2020 11:04:54 -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=YyzANry9wKnt7dIL51Q9e/8k6xhAxTWEs3wg4g++JoY=; b=DGHAgoDFzBbJeIP/Oha6Ftvn26ea6XQFNMwkdaeK6WqcMQqcqAoaG95y0UUquMmISt xHbtHWd2GWwgS12GnT83moQF+VufsKX/xMyUC2m6ggCpglYjBSd1cl0VbQq2tMP34FPZ 8bcoMTGVwXE2naSRAWDv10mbNXdJ+8bXyZXmc= 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=YyzANry9wKnt7dIL51Q9e/8k6xhAxTWEs3wg4g++JoY=; b=CZyuqm2Vl36Oqlp3EizgKbEsgANAEGJQPzYKHpyyEM19teGIAWWocl/zz3S1xp6rA2 TdLDqupOBB/3+b4wkpVErjm2JSgeL5JIX2+bEEr/7ZT8GXbyHnXDAGs2WarGZX+Cgzza qZl+L+MPxXUChVxqK8HLb22MUFneeA7qnnoLdjb4S23V1b7qaDiUBG8Aj14kYka+LXCx xrFmpgA4L2J/SrOxamd9lss+xXCTpfE7lq64X39F1LJZzW29b5mT4/zdKLn8StM/22Jl uEJoxb20Mdd6oM5uTk4ufS9JBb7KF1Q5U803Yttgb/7b2OQoCg7fZ6YC2OOSiRJ8p4Qd KgpA== X-Gm-Message-State: AOAM530rEj0CtVACrn01TMGw5Brf/S2bQFEz/JK8gYAnv1/u3RqmkTs4 JtFKgD8IxzQLZW/7thgjqOqhmQ== X-Received: by 2002:a37:73c6:: with SMTP id o189mr26051232qkc.216.1606071893808; Sun, 22 Nov 2020 11:04:53 -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 w65sm5677962qtd.94.2020.11.22.11.04.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2020 11:04:53 -0800 (PST) Subject: Re: [PATCH 6/8] Add transition on gentoo init_t to openrc To: Jason Zaman , selinux-refpolicy@vger.kernel.org Cc: Jason Zaman References: <20201117034628.2461-1-jason@perfinion.com> <20201117034628.2461-6-jason@perfinion.com> From: Chris PeBenito Message-ID: <183cd3db-ea22-2240-ca12-c57311e8ade6@ieee.org> Date: Sun, 22 Nov 2020 14:04:24 -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-6-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: > From: Jason Zaman > > Commit "init: replace call to init_domtrans_script" > (be231899f5c7f0882843942624dd268f99bab141 in upstream repo) > removed the call to init_domtrans_script which removed the openrc > domtrans. This adds it back directly in the distro_gentoo block. > > Signed-off-by: Jason Zaman > Signed-off-by: Jason Zaman > --- > policy/modules/system/init.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te > index b2a9069b3..b284fc26b 100644 > --- a/policy/modules/system/init.te > +++ b/policy/modules/system/init.te > @@ -120,6 +120,7 @@ init_unit_file(systemd_unit_t) > ifdef(`distro_gentoo',` > type rc_exec_t; > domain_entry_file(initrc_t, rc_exec_t) > + domtrans_pattern(init_t, rc_exec_t, initrc_t) > ') > > ifdef(`enable_mls',` Merged. -- Chris PeBenito