Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1A81C43381 for ; Tue, 12 Mar 2019 00:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD5432084F for ; Tue, 12 Mar 2019 00:53:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="EqjWfo5z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbfCLAxN (ORCPT ); Mon, 11 Mar 2019 20:53:13 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:41630 "EHLO mail-qk1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbfCLAxN (ORCPT ); Mon, 11 Mar 2019 20:53:13 -0400 Received: by mail-qk1-f182.google.com with SMTP id o129so458353qke.8 for ; Mon, 11 Mar 2019 17:53:12 -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=1BibscVDpocj/xLffhEHVq33wRDBkaNMchLXhr31os0=; b=EqjWfo5zMoQrCsBW9mzXWFvop9tcvnC/HaFLp9P3guEkk68YV+B153UEBaG4Shg36u JFAB5HqIKOBjmYwAdN9WNZNUmrDrogobUdhViJyDXs+lZon3qfM/isNgTZULs0NGd/af TifdQu0kIw6QpIB9MrxUECSd5hebZt03y7J+k= 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=1BibscVDpocj/xLffhEHVq33wRDBkaNMchLXhr31os0=; b=WYDOru9p5axJBVqpmWEMbnPr52XnL3VYoDIuDGGHE1P8LjHh+ffxpiD1N/TWen4Gef tHaSrKadsf1lel8tO6p8seQGAvnsFRGeCF9XI17IvOhHljLv5uxQcZzdCcQJHw864IBB 5/QifOI5cLDXioPjpb4w6ab+PzDXXneQcqqcpaqZ722cY3Kz484o/4+doOryZBcZTEbc CIeR3C6+9KTCM61+FEhhue5G/CzNQN3rGkf1oEkjcBCKtQ6gMrJ17NItKYA04kxZmj9Y RfCj7U7QyxOHfa5A1QXgiQ/qp0DUwUszrU9eZNXcXc4oHkzpiuWDpLkQldlXMYtCtUQQ ryYA== X-Gm-Message-State: APjAAAViisV3IEa28qExtJg/p4ors3ckPYHanDHF0mXV9ul112kuMdCO kD2tEcHJKmoF8KbA0fKQq4tFPdiKMlg= X-Google-Smtp-Source: APXvYqzbLa9g99OdfhS5OKkFGYnv1G6vpR7O7FtSGptg81sY+HTyDPx0qnRqKl1PdXSmSE/uhVPiHw== X-Received: by 2002:a37:a543:: with SMTP id o64mr3031770qke.235.1552351991917; Mon, 11 Mar 2019 17:53:11 -0700 (PDT) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id e65sm3879405qtb.51.2019.03.11.17.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 17:53:11 -0700 (PDT) Subject: Re: /run types To: russell@coker.com.au, "selinux-refpolicy@vger.kernel.org" References: <6343390.MUIIc35a3h@xev> From: Chris PeBenito Message-ID: <1cac9a43-08c8-4260-bbfe-80cdf02f1804@ieee.org> Date: Mon, 11 Mar 2019 20:53:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <6343390.MUIIc35a3h@xev> 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 3/8/19 6:18 PM, Russell Coker wrote: > typealias screen_runtime_t alias screen_var_run_t; > type vmware_host_pid_t alias vmware_var_run_t; > typealias boot_t alias bootloader_run_t; > typealias acpid_var_run_t alias apmd_var_run_t; > type arpwatch_pid_t alias arpwatch_var_run_t; > type lircd_var_run_t alias lircd_sock_t; > type munin_var_run_t alias lrrd_var_run_t; > typealias samba_var_run_t alias { nmbd_var_run_t smbd_var_run_t }; > typealias vnstatd_pid_t alias vnstatd_var_run_t; > typealias exim_pid_t alias exim_var_run_t; > typealias irqbalance_pid_t alias irqbalance_var_run_t; > typealias ntpd_pid_t alias ntpd_var_run_t; > type policykit_var_run_t alias polkit_var_run_t; > typealias clamd_var_run_t alias clamd_sock_t; > type getty_runtime_t alias getty_var_run_t; > typealias mount_runtime_t alias mount_var_run_t; > iptables_runtime_t alias iptables_var_run_t; > type mdadm_var_run_t alias mdadm_map_t; > typealias restorecond_run_t alias restorecond_var_run_t; > > We have the above aliases in the current git policy. The current type names > include *_pid_t, *_var_run_t, and *_runtime_t. > > We have 284 other type definitions that include _run_t, of which 274 are > _var_run_t. > > Futher grepping found a few other instances of *_pid_t and *_runtime_t. > > By far the most common (and most obviously wrong) is *_var_run_t. When using > systemd (and also non-systemd on systems like Debian) a tmpfs on /run is used > and /var/run is a symlink. > > I think we should change this to use a common name. If this idea is generally > accepted I'll submit a patch changing all instances of *_var_run_t, *_pid_t, > and *_runtime_t to *_run_t with aliases for the old names. > > What do you think? I'd prefer to standardize on *_runtime_t as that doesn't have the implicit baggage of *_run_t (it's more than pid files). -- Chris PeBenito