From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51327: 28.0.60; emacsclient warns about XDG_RUNTIME_DIR when starting daemon on-demand Date: Wed, 08 Dec 2021 21:16:40 +0200 Message-ID: <835yryx5yf.fsf@gnu.org> References: <53706fa9-1458-fb5c-bd31-15ab555b59e9@gmail.com> <834k7kze0z.fsf@gnu.org> <212e4974-785a-65e0-70cc-fed7ea3ddacf@cs.ucla.edu> <3107b151-c56b-7c8d-7277-cbc39273a401@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="593"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, 51327@debbugs.gnu.org, stefan@marxist.se To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 08 20:20:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mv2UJ-000AW8-2F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 20:20:23 +0100 Original-Received: from localhost ([::1]:58208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv2UF-0006kX-LO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 14:20:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv2S5-0005gQ-6q for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:18:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv2S2-0007pg-Du for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv2S2-00042g-AH for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Dec 2021 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51327 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security patch Original-Received: via spool by 51327-submit@debbugs.gnu.org id=B51327.163899102815461 (code B ref 51327); Wed, 08 Dec 2021 19:18:02 +0000 Original-Received: (at 51327) by debbugs.gnu.org; 8 Dec 2021 19:17:08 +0000 Original-Received: from localhost ([127.0.0.1]:41389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv2R9-00041J-Te for submit@debbugs.gnu.org; Wed, 08 Dec 2021 14:17:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv2R7-00040m-Q9 for 51327@debbugs.gnu.org; Wed, 08 Dec 2021 14:17:07 -0500 Original-Received: from [2001:470:142:3::e] (port=42470 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv2R1-0006JC-OM; Wed, 08 Dec 2021 14:16:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6B2cD8X6hGUL2GeAK1GG9hbZgKNdegDejBOH54+DQXc=; b=dp2KD5hdx+DB 4VPvYWKHoZwtST6MfS3weBS9RTZ5mlRG43ZZJnqgErEgqL6UO6JQyrQyi6tZeF9z7K3Ur99PpLTLJ J1kYEJusEKg8SfNbBiE7x9ld62WkbkKoUzMNzvfQIRY3TEqADzkV21mbixTRU8FcO6OLCZv2Er0UY wvFrGmIHldIB8kGq7NlDPtUMhsxz1cEXUEIMN6EuoXKDbPYRpcL8Y/VZbwTCKPA0e0oRuj1XFVbpl uO+dl1j8lnkFHSeI/5QTy9ihzCNXhlr40QLFIj2iXUac3QYHKHTGLvxioO9GR7CZvsx3E7o49NcLT kCY7dIVB4snfYw8oF24Nvw==; Original-Received: from [87.69.77.57] (port=4548 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv2R1-0003A7-Gm; Wed, 08 Dec 2021 14:16:59 -0500 In-Reply-To: (message from Paul Eggert on Wed, 8 Dec 2021 11:06:12 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221939 Archived-At: > Date: Wed, 8 Dec 2021 11:06:12 -0800 > Cc: 51327@debbugs.gnu.org > From: Paul Eggert > > On 12/7/21 22:57, Jim Porter wrote: > > Doing that by default opens a loophole for all emacsclient users, but > > what about a command-line flag like `emacsclient > > --allow-tmpdir-loophole' and/or an environment variable like > > `EMACS_ALLOW_TMPDIR_LOOPHOLE=1 emacsclient' (with a better name, of > > course)? Then, the default behavior would be free of loopholes[2], but > > Ulrich's case could be achieved by passing that flag when calling > > emacsclient. It might even be possible for Gentoo to enable that for the > > user in the appropriate cases... > > Yes, I think something like this would be OK. The command-line flag > would be easier to audit. > > Not sure whether a last-minute change like this should go into Emacs 28, > though, even though it's security-relevant. Eli would be a better judge > of that. If it's a new command-line argument, and if the participants in this discussion can live with it as the solution for this problem, I'm okay with having it on emacs-28. Thanks.