Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1599154pxb; Mon, 11 Oct 2021 09:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIF8V6g9+tj/OtbUYgU7ncgPOZLVwvfBbYp5Pex3uYkxygxXWzD8ojs1W4j22r7jEZkQjO X-Received: by 2002:a63:4766:: with SMTP id w38mr18896035pgk.104.1633968779843; Mon, 11 Oct 2021 09:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633968779; cv=none; d=google.com; s=arc-20160816; b=Q5wFv00Eo9AIt8zpDWmbIf45DKAupec6GzT1cevLSrYtuRmxSquOQSlUp6q0FHecJB fHbBoWnH7cftisJnC1V4KKLWiLB+8yfv/iClO1TNR2Uz1L6ITfw5RUZzq4s4aLw6zhfA r/Mw4ix/h1q5JQ3meNdjhgQX+StP05jWSY+HOd68b9iPpmZC+vlR5lWsCuo1O68uyByV Hqx6Cp0MwjE08kX5AdxZzwX4ypM2JdKY4v8n4trvfHMjDzYxIm0TrhvuYY0XYuFMhDJT TOK5yIdpWG2OSJh+kqW6UyV9LZn0I2Z/apE8pHyM1FDLnM7cts8VT6vpvc7yyX/Pdzhp YNkw== 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:dkim-filter; bh=A4ELTOvC2MXV4uGmccqe6SyZZoRpw+8wwYXwy7I7a7Y=; b=veBUpRObJ45mRSoq9WKVTsiwQA2XklIPcEvQ6FXJhbSHMGGyLLapzuYJUdLUAdIpab 5N4h7H8k8v11k0ZSBmyPRSiHNWcnn1J7GVC291Mz063z6DMNZnyMyu3GboqYT92EFn+C FiGG6/RAWqFDP57VL1KqO+xqK188E0H8i9Z7b3dgIjj6BJWamBj1ylbsbjfpzNx2TFp8 rCVad1laa3NqZBu/95dftbPcIFzLZt7W1bdI0l+q7nhd/xRSTDWThO1SZj3TqY5P3NwR 3m9DsXX+Hjn3cazEY4eIaKW3UR6nNwI+riobaCGPW3b6twKB3uWipIJosKz+o9+nj9Ct PY7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=HxDxYVT9; 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=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si15300472plh.436.2021.10.11.09.12.52; Mon, 11 Oct 2021 09:12:59 -0700 (PDT) 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=@linux.microsoft.com header.s=default header.b=HxDxYVT9; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231899AbhJKQOv (ORCPT + 21 others); Mon, 11 Oct 2021 12:14:51 -0400 Received: from linux.microsoft.com ([13.77.154.182]:33676 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhJKQOv (ORCPT ); Mon, 11 Oct 2021 12:14:51 -0400 Received: from [192.168.1.10] (pool-173-66-191-184.washdc.fios.verizon.net [173.66.191.184]) by linux.microsoft.com (Postfix) with ESMTPSA id B664720B8965; Mon, 11 Oct 2021 09:12:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B664720B8965 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1633968770; bh=A4ELTOvC2MXV4uGmccqe6SyZZoRpw+8wwYXwy7I7a7Y=; h=Subject:To:References:From:Date:In-Reply-To:From; b=HxDxYVT9qE/+GsiH19SxuWC4OTiUxRq7sdNfJjtHudrldVyCHCR/UXPDdqTdd5qY8 uDEWrFXmtz4ydRSQsSiR3JcnF+t3J+on7EgQPOIrtG6R4eo38TyUj3MnbjPb/fC63S I9d7exYgRrvuWKFTBSvU1KrxtdD0U9gKCdpkbw1U= Subject: Re: [PATCH] strict policy patches To: Russell Coker , selinux-refpolicy@vger.kernel.org References: From: Daniel Burgener Message-ID: Date: Mon, 11 Oct 2021 12:12:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org > =================================================================== > --- refpolicy-2.20210908.orig/policy/modules/system/systemd.te > +++ refpolicy-2.20210908/policy/modules/system/systemd.te > @@ -65,10 +65,6 @@ type systemd_activate_t; > type systemd_activate_exec_t; > init_system_domain(systemd_activate_t, systemd_activate_exec_t) > > -type systemd_analyze_t; > -type systemd_analyze_exec_t; > -init_daemon_domain(systemd_analyze_t, systemd_analyze_exec_t) > - > type systemd_backlight_t; > type systemd_backlight_exec_t; > init_system_domain(systemd_backlight_t, systemd_backlight_exec_t) I proposed a similar change last year here and the consensus in the PR discussion was that it would make more sense to add policy for the systemd_analyze_t domain for cases that wanted a transition there, but keeping the general approach of running in the parent domain. https://github.com/SELinuxProject/refpolicy/pull/321 Of course, no one has actually submitted systemd_analyze_t policy yet, so maybe the demand for such a use case isn't all that high? -Daniel