Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4551576ybb; Tue, 14 Apr 2020 09:27:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIZRn9ZQaoQNaHHMdx47NbnD0ojtoxuoLpdHUk9Y5Y6VsHf7vlj7CeJmOkzo+nVPhr0TNNR X-Received: by 2002:a17:906:1f47:: with SMTP id d7mr950206ejk.37.1586881644747; Tue, 14 Apr 2020 09:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586881644; cv=none; d=google.com; s=arc-20160816; b=m3mbpQM++gDpMy+NoQ9B6i+kVIEoWMDWSYB7ZSeg0UEZ8A0W/judBSgKaHBFdDHQsr Lu6hg+LHLbZm9QPlA+Ac5DV8MGOTBao7fHg5OY9ufgYZXeWr7NgDMy3NxoEbBxLw7xjn jXd81/gxR6wfxLwnvaqjt1uoXOo7l7UoMq5EtDigRLjjEo0BrL8FNd3nMKe5fiW2WmOH jesl2SFKy452gFhtKq8qil5b1R2XRXxJQH4a3FeBRvGp6tjIxyRsOqVSxsWNPkiz3vYQ frPYPywl+G8D6QTPXls2ON0MB4ex9iEdZ6fxDyUYxgbWcLqYwFqmdlJmGExVbAss9KoW ysaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=sUY7SSzqYBAr4Zr5mHjHU6gEU+LoXUTUaQamfbvlWB0=; b=mzbKz006s9oTFTntZBXlHtMDA//L+VoshdVEDjfZM/RJarO51c6jZo94XSYFkBiqhX asdxjJjyAwqDkZnuUrukjGu8qMLf7v4I0Z0MiubKruRJn51OPgbV/2dvn3pVf1ivucX4 nHy+Mk+nypneivxk/Tyhoosa/0RP5rnqar6AR7z6qQSfbs54A6MQWogLkKTNYwhUIQqG l2TgWO2emZgSjLQ7m58xMgEWcTZ6h15rcMd//GVm2GGedtkKBA+n7IPp2kBbYu31PznG kvmHrGKqU28l6qAwXoLUeK4AL7cOsBCZA1Qw2fl3g/hpJNAdh+iWR5RwOnoNckuTmlDH E6Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=gsioqtMQ; spf=pass (google.com: best guess record for 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 j3si8927824ejv.401.2020.04.14.09.27.21; Tue, 14 Apr 2020 09:27:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=gsioqtMQ; spf=pass (google.com: best guess record for 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 S2407186AbgDNPGj (ORCPT + 13 others); Tue, 14 Apr 2020 11:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407057AbgDNPGe (ORCPT ); Tue, 14 Apr 2020 11:06:34 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D23CEC061A41 for ; Tue, 14 Apr 2020 08:06:33 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id o10so10346016qtr.6 for ; Tue, 14 Apr 2020 08:06:33 -0700 (PDT) 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=sUY7SSzqYBAr4Zr5mHjHU6gEU+LoXUTUaQamfbvlWB0=; b=gsioqtMQqGcZILo1P+EQ8pWmoxlHxUttTF3KuUHjpkXkxoKTrF/jm34OyyOibtmBq/ BEXhv4xhABoH23GOAGdXrN/LiYohrEGTE1aWmRCZF07Mc9wwVKWpHkFB5nt+hQtcgoX9 BC7f6TJHVUEPkrCDq23TVy7ef4QpANnVUUNjw= 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=sUY7SSzqYBAr4Zr5mHjHU6gEU+LoXUTUaQamfbvlWB0=; b=DzLB+Hwtn7ICa0hAhGHo4C8/N7myX+lss8D5yJEhUYjeGBi9MiCEdrGnf06r2ag2QP pWTslOSxfm6+Kbjo06yhcTLh77ytb4Q3E9+Zv7K3J0vwPyVwYIMC6Y3O7JMv8fZyHnmo 4wLbtjOq6jJFcn+u/2ZsDvR7jowv7tPgpYyIzllzyHRAmnANgJTH5qQDLoY+Q6O3V00U 2vOkWxVvDyuG3h4n7C+a3lPxUmFPAVdBE51lWFfmaQXUZJw3CaqzRefk76eOPF8i02Iv In1JMfyqpDyHJY/jPMub31YD9158nEWNIXJTkZ9ICCHNDLmWmUKaOZNmp0z4ikJRq5oz Z18w== X-Gm-Message-State: AGi0PuaWJeQpLKkEbtjMYa/qKrwTX7wuOrHWldT2rSTz1vMbjn1wLjD/ OMfBKpagit0RoJWD4KHu4VeleWb+KbY= X-Received: by 2002:ac8:468d:: with SMTP id g13mr16145254qto.59.1586876792241; Tue, 14 Apr 2020 08:06:32 -0700 (PDT) Received: from fedora.pebenito.net (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id d4sm11108993qtc.48.2020.04.14.08.06.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Apr 2020 08:06:31 -0700 (PDT) Subject: Re: systemd_generator_t vs systemd_generator_type To: Russell Coker , selinux-refpolicy@vger.kernel.org References: <1717302.MpC4nazLU5@liv> From: Chris PeBenito Message-ID: Date: Tue, 14 Apr 2020 11:06:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1717302.MpC4nazLU5@liv> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 4/10/20 11:02 PM, Russell Coker wrote: > This combination of names is confusing. As a general rule I think we > shouldn't have a type name be a substring of an attribute name. Having an > attribute name as a substring of a type name is less of an issue but still > best avoided. > > /lib/systemd/system-generators/systemd-bless-boot-generator > /lib/systemd/system-generators/systemd-cryptsetup-generator > /lib/systemd/system-generators/systemd-debug-generator > /lib/systemd/system-generators/systemd-getty-generator > /lib/systemd/system-generators/systemd-hibernate-resume-generator > /lib/systemd/system-generators/systemd-rc-local-generator > /lib/systemd/system-generators/systemd-run-generator > /lib/systemd/system-generators/systemd-system-update-generator > /lib/systemd/system-generators/systemd-veritysetup-generator > /usr/lib/systemd/user-environment-generators/30-systemd-environment-d- > generator > > Above are the generators on my system that run as systemd_generator_t. Would > systemd_generator_generic_t/systemd_generator_generic_exec_t be an OK name? I'd accept a patch for this. -- Chris PeBenito