Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp315241ybb; Tue, 7 Apr 2020 23:48:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJcG57WPmk6vo8BZarVJLGNckqNma4wtyD8BBay7SgcTSABSxNiu4l+HjXR6brBD3+mogMV X-Received: by 2002:a9d:221:: with SMTP id 30mr4300666otb.41.1586328531755; Tue, 07 Apr 2020 23:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586328531; cv=none; d=google.com; s=arc-20160816; b=hZQf2YNkhmoII6j/g78wBX501xVA+ZhDt2g4pMO8+lZLSe9T8FRnieqdUAAHVdUXOE dEjOVLSs0XZrD8YTGY96dXOKmtj9zeEoerpnogGtZNs8S+meBNuCWMBkBLnNN9f0WcvL McA4AkSni88l3av9ImtF0bBMMQ7BoeeVz9ahx3akk5YNHhdXRMdpAVn9Ry0HgGS2Xzgw 4JT6BzBdFfVJp/PJdeXotCAEWqh6KdTxST/Ig0UaXOC2Yvwx54Q3C+qqbpcwdlXZuQU6 gREQA39EEcYW7TSX1MThHBbHRUL4sNMIzPAnyjqUdimeOx1h+HWVWOW+6xv1Zq+2sLwp gPwA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GQgITaX2yUcCq+O6P8bMWKoYRbu5PEbCdf8lkgC+nVw=; b=ldm/mwfAlJFHHwySIp00j7lMYhTRYByjfJ+k3KN/nqGrmbKDx88h9/SUW4yl92o8rF CNhE0v6dS504JPsC+/57/ZZYftaqHloLFMB4PWdZcIMU/j6BMxAUd502TDciS0O6zZjb OODVVEO/Zjn3ezG6AkdYRNesUYtgYbQ89uVYxgu1oyjYJizFmgmPZHJqopdqIZRhLbVF HsLiIbS4zZgmCfjkBlXgtEes6Q16kebtxz0hgZYfsvr5JaAZd8xCxATXT7ZqAylzmx74 GmlRB2Jxv3vwG8RQv0g5xHdsiUKDdiq/HyizGiKhpMLIySmXKDc162AKC1gWNmh4lbBc SFTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=rkLFacj8; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m26si2513561otj.109.2020.04.07.23.48.49; Tue, 07 Apr 2020 23:48:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=rkLFacj8; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgDHGsp (ORCPT + 13 others); Wed, 8 Apr 2020 02:48:45 -0400 Received: from smtp.sws.net.au ([46.4.88.250]:53704 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbgDHGsp (ORCPT ); Wed, 8 Apr 2020 02:48:45 -0400 Received: from liv.localnet (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 6DC59EC9F; Wed, 8 Apr 2020 16:48:42 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1586328523; bh=GQgITaX2yUcCq+O6P8bMWKoYRbu5PEbCdf8lkgC+nVw=; l=1716; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rkLFacj8Mfk9I9evNwgw04VR42uC/krLWsg0JtHuFAjky588g33kw0LrsIf2Ee6Ss PzWLU/20/wWjn6cwoHPyYwRia6Vo3rx/QD2Mgytepzq5MC9MpZVnWuPXkJk2tjBApk 6Pd1KTGP5hIx/Kw81PtTHtLOs8n5ysv0Q1zaazQE= From: Russell Coker To: Topi Miettinen Cc: selinux-refpolicy@vger.kernel.org Subject: Re: systemd_user_runtime_dir_t Date: Wed, 08 Apr 2020 16:48:32 +1000 Message-ID: <3285433.FrU4F1G8SV@liv> In-Reply-To: References: <2379388.043O1XupSG@liv> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Wednesday, 8 April 2020 4:43:32 PM AEST Topi Miettinen wrote: > On 8.4.2020 5.19, Russell Coker wrote: > > What kind of name is that? It's a poor choice of name by systemd upstream > > and I don't think we are obliged to copy that bad idea. > > The name is related to environment variable XDG_USER_RUNTIME_DIR, which > is not systemd specific construct: That's a fine name for an environment variable, clearly indicating that it points to a directory. It's a poor name for a domain, making a casual observer think it's a type for a directory not a domain for a process. > https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > > So if the name should change, xdg_user_runtime_dir_t might be more > accurate. It would be more accurate to have a name that reflects the function of managing the directory in question. > On the other hand, the current name reflects that it's > specifically the service supplied by systemd called > "runtime-user-dir@.service" which provides the directory. If the > provider would be something other (/etc/init.d/elogind-mkuserdir), it > could be equally accurate to label the directory with something else. If the provider changed to a different process (theoretically we are supposed to be able to swap out parts of systemd for equivalents) then it should have the same domain name. > Though if the result (temporary directory owned by the user) is no > different in either case from the point of view of SELinux policy, why > change? SE Linux is difficult enough to understand without making things needlessly confusing. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/