Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3573959pxb; Mon, 16 Nov 2020 19:47:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIK8kNJqQfDD8oL+4s/V8+QacIRMhlFFHrjPhcIdlbjXdk2U9vgc/8Pyn0CKEH6PiShCW9 X-Received: by 2002:a17:906:af49:: with SMTP id ly9mr17630536ejb.238.1605584873302; Mon, 16 Nov 2020 19:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605584873; cv=none; d=google.com; s=arc-20160816; b=lnYjIKShmzRhcJlcWKEBxyzWlGaQ27TZRc2nPAp+zR3noHD8XkO2XnPfCnxLBnn7eU zzhuJWpoyNp0JeH4Qd+S3s1Qw+YKQS3u4ntAupXmSI8os8jMkATLPCMYPuBLmwEqFaDQ DxLVzCgvHzu5ntlPrObeEv6PvCCy5LGbFy0YzbVAjUJdldHRByDnT8fZbbTRVpEi3Sp6 HRL7oGcs43ZjYMx4FatskvmtdeE0AYqiafyhrUMwUWXDbzCqP5K9oNS9n/ILjVXSMy5n qsjkzgudLGpFdcecBN5YkAAMHMMHw2JSnC4XmVwrpkvuLbOYow4lUUPxX7ffh14I4aDt 1rtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wl9YqeM8nl74NpsMhOSjbv1gW78mlXYX3sw7nOmFlEA=; b=snm+4mGqNnc5zZABC/ZlRNweKdR0nfA519bD5/7TPX6QqFDwkX48GFubqL5jjTqo++ irWSmTRbCjRCEFb9bKwwqLo3eJOnwqAep7znBVSAPMbF4C4O7g6Zic7DZWivbmhFsqjm 0t276hEybp44bfLe7g9uMfwE0fowh+TUELglqJvm8r7Qfy2QSdxRLpDVE8sjj3TRnk8H epAlpZ+jMGhlyAJk5UJgnA4mr+nxhvJ+rlJvU/vDp5AmdxoLfWv9xqKPRPDtaLw09v/a zyHeSihVfdnkp/18w47DmfWr/vnPPID8/4TDeaK3xLg9qT+4pF3FtvA4/wao6iX7/Sl+ 2eDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perfinion-com.20150623.gappssmtp.com header.s=20150623 header.b=Q+EsLJ54; 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 y19si13224769edu.12.2020.11.16.19.47.48; Mon, 16 Nov 2020 19:47:53 -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=@perfinion-com.20150623.gappssmtp.com header.s=20150623 header.b=Q+EsLJ54; 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 S1727090AbgKQDq4 (ORCPT + 17 others); Mon, 16 Nov 2020 22:46:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbgKQDq4 (ORCPT ); Mon, 16 Nov 2020 22:46:56 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10198C0613CF for ; Mon, 16 Nov 2020 19:46:55 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id v21so2404149pgi.2 for ; Mon, 16 Nov 2020 19:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perfinion-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wl9YqeM8nl74NpsMhOSjbv1gW78mlXYX3sw7nOmFlEA=; b=Q+EsLJ54/b1q07u65pv8UbEUqKcA5OdiBgRpvZbfpjzgwdKPyPFCT+mYH4ZFwIIWv8 or3iCOgKrElmvI6iwI41xSUnl3/QNI3XXxMTi2tuOaLLlgekIXo+Rc1h/W4g9+A3EtUj 94Xt1h3QrO/luOkVHYGI7poX8ejtJHvGz8nfG0ubj0xkfd/FaPF9SmS4BKskN76R0Dyp DDiCs2EiFXa0OKk4ejL71l9ShhmZMhXKkShGLNOByiJBd0iXq2uW5IfbPGtcm+PEhIiS liAiqSiMRYD5tI8bO0Eyd9Dr2Iplwx2qzDLEqVD89PLCncuA8ZTwkRepj/Dl61J6Zyti BpxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wl9YqeM8nl74NpsMhOSjbv1gW78mlXYX3sw7nOmFlEA=; b=tr/bUzvzdUS4VZG9xIzkybAZEpWx/Ij57DWHVur10NkAJONhW1ZkmAwjTDOkuxti5d qlLkxELID8VHARmgAoJHcIt9tORw3cuJX5WQXSfvVa3rEcbiphKBdoETctj7fv5AItol 4xoJkFIS1uUJKfFo885hNIq9jgnukxWEk9MF3TbrXVEs5rI8uzMVm9sCKOd9IptNoIq3 RLMCJZIAISrqKoomf00xBYMvfFeco0iAaj55trO4y625JSCRW922vjANv1ObN2q8kqoR 5LUvi+q91tXwsJjxVsTS6ZRN7BztUhM9+Y86EDcDclu02s39jm+aOIXDIu9lz1zXknmx 2EXw== X-Gm-Message-State: AOAM530JDikr0C7SOmHiWHNTJeDUMKH6DXPV59GNPfSVf9MmW2I07sEy +zXDbBY1j6SojilqyPUKYSy4afVhnQdahbEv X-Received: by 2002:a17:90a:80c6:: with SMTP id k6mr2338650pjw.73.1605584814294; Mon, 16 Nov 2020 19:46:54 -0800 (PST) Received: from localhost (115.42.24.136.in-addr.arpa. [136.24.42.115]) by smtp.gmail.com with ESMTPSA id c22sm12983956pfo.211.2020.11.16.19.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 19:46:53 -0800 (PST) From: Jason Zaman To: selinux-refpolicy@vger.kernel.org Cc: Jason Zaman , Jason Zaman Subject: [PATCH 6/8] Add transition on gentoo init_t to openrc Date: Mon, 16 Nov 2020 19:46:26 -0800 Message-Id: <20201117034628.2461-6-jason@perfinion.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201117034628.2461-1-jason@perfinion.com> References: <20201117034628.2461-1-jason@perfinion.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org 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',` -- 2.26.2