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=-2.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 B33B9C2D0EA for ; Wed, 8 Apr 2020 06:43:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C0AC2072A for ; Wed, 8 Apr 2020 06:43:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e9oRSLnO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbgDHGnj (ORCPT ); Wed, 8 Apr 2020 02:43:39 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:46781 "EHLO mail-lj1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbgDHGni (ORCPT ); Wed, 8 Apr 2020 02:43:38 -0400 Received: by mail-lj1-f180.google.com with SMTP id r7so6334616ljg.13 for ; Tue, 07 Apr 2020 23:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lN8MhFUP3UqLyZm0+SFsk160GIbQoe1zL3i1wh8I5LM=; b=e9oRSLnOPrUC5/XJPSMfwC2YWKOAz1Un8Fczhpgy6zu0gp3LLsDj1dYfh15y4CThv7 z8wjrPGrQta15rhFmg9F74Dzdb/0F1w5e+kA4QECu9hgkjslQZnZ2bv8yAKdGJ8p7v05 B5k6whawEKLh8jJBqJt4ik/PyAOmTypIfphz9MuntgV0eu2l4cvIOI0gR/9zNydyQ3kf awnTSC7KaOp/8p66Yt6AnVtbrGTFAuiwpo5E1HXQe8mBCY8sGwNtqdSDSOMtWul+nC3K K0ikku++HMJQOWD/filBidK9h4lf1iVeVYBAu8fAPTiv7bZnuKy1Ml48QR3ZOBKveuyi V0Jg== 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=lN8MhFUP3UqLyZm0+SFsk160GIbQoe1zL3i1wh8I5LM=; b=PpPrpXAjW/IoeCVB/mnDadG7BxIrMWqJdNz6zi9c7rlGCjCd2mvDQ/QSdOys3A65x9 orx5TSrL1uGCXfH1qU5YYZIyF5D2NjsFDY7kYMDxNwpmxmsaRuqF8aQGRUjBuSrupc+H dVYrTFlhgIi9SyOgnHW5uZOquJxkScAKEMbZ0NhhjRYFIMADFInpoAcdKjpZyhVCI/or N5qX5vyFfdClYTGiK4g1mkMc1o2vbYEP/ZJW4DdjybHa2w5laklFoE/dILzVHrNJWYPk n/rzsf9Yujb8zNyUY2ie03B88euNjBIxNhQAl+IowToLj0vmxJc4qYusr6py3W6pOmrd nKMg== X-Gm-Message-State: AGi0PuZ+H7U+HvbdPkDf3dRHsF4AskdFasQv3V4NktmfwkBdIXj5+1+a 2fyZhJVJEM8OoGL7r7vMD2UU7Ypvi/0= X-Google-Smtp-Source: APiQypKT0ntxG0JX1pIhifKPZQbdEswJ8DkkDC/uiDUN6H1I/qOitlw2Xr+Nfn5CumD4ehCaOMhI0A== X-Received: by 2002:a2e:8105:: with SMTP id d5mr3925493ljg.196.1586328214434; Tue, 07 Apr 2020 23:43:34 -0700 (PDT) Received: from [192.168.1.38] (88-114-211-119.elisa-laajakaista.fi. [88.114.211.119]) by smtp.gmail.com with ESMTPSA id g4sm8416535ljn.105.2020.04.07.23.43.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Apr 2020 23:43:33 -0700 (PDT) Subject: Re: systemd_user_runtime_dir_t To: Russell Coker , selinux-refpolicy@vger.kernel.org References: <2379388.043O1XupSG@liv> From: Topi Miettinen Message-ID: Date: Wed, 8 Apr 2020 09:43:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <2379388.043O1XupSG@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 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: 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. 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. 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? -Topi