From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Questions about XDG_RUNTIME_DIR and server-socket-dir Date: Sat, 2 Feb 2019 22:10:24 -0800 Organization: UCLA Computer Science Department Message-ID: <32b703fc-e89c-23c3-cf21-74b4af6640f1@cs.ucla.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8552"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 Cc: Emacs Development To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 03 07:14:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqB2i-00028N-Ra for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 07:14:12 +0100 Original-Received: from localhost ([127.0.0.1]:51971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqB2h-0005vF-Rj for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 01:14:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqAz9-0003iU-Hz for Emacs-devel@gnu.org; Sun, 03 Feb 2019 01:10:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqAz8-00067U-Pb for Emacs-devel@gnu.org; Sun, 03 Feb 2019 01:10:31 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38958) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqAz8-00065g-Jr for Emacs-devel@gnu.org; Sun, 03 Feb 2019 01:10:30 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CE239161141; Sat, 2 Feb 2019 22:10:27 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UFOqWvNhEDvW; Sat, 2 Feb 2019 22:10:26 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4A8AB161159; Sat, 2 Feb 2019 22:10:26 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oIBEp0qrAtUm; Sat, 2 Feb 2019 22:10:26 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 25346161128; Sat, 2 Feb 2019 22:10:26 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232924 Archived-At: Phil Sainty wrote: > I don't know about XDG_RUNTIME_DIR. Does that get > used in ways that rely upon its path never changing? XDG_RUNTIME_DIR is a per-user-login directory that is like TMPDIR except without some of the security problems of TMPDIR (e.g., an attacker can create a symlink in TMPDIR to some victim location). That is, XDG_RUNTIME_DIR is accessible only to you, whereas TMPDIR traditionally is world-accessible. Also, XDG_RUNTIME_DIR's lifetime is intended to be just while the user is logged in. For more, please see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html I don't see the harm in changing it, if each new setting is intended to correspond to a different user login. That might be simpler than adding yet another environment variable.