From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Date: Fri, 10 Aug 2018 16:47:17 +0300 Message-ID: <83va8imize.fsf@gnu.org> References: <87k1oyy3fi.fsf@zira.vinc17.org> <83600io1pl.fsf@gnu.org> <20180810125758.GD12819@zira.vinc17.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1533908770 18895 195.159.176.226 (10 Aug 2018 13:46:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2018 13:46:10 +0000 (UTC) Cc: 32413@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 15:46:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo7ju-0004lR-1J for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2018 15:46:03 +0200 Original-Received: from localhost ([::1]:56372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo7m0-0001Lq-OY for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2018 09:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo7lu-0001Lb-OR for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 09:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo7lq-0007CC-MM for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 09:48:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fo7lq-0007Bt-IW for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 09:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fo7lq-0002NZ-Al for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2018 09:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Aug 2018 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32413-submit@debbugs.gnu.org id=B32413.15339088519105 (code B ref 32413); Fri, 10 Aug 2018 13:48:02 +0000 Original-Received: (at 32413) by debbugs.gnu.org; 10 Aug 2018 13:47:31 +0000 Original-Received: from localhost ([127.0.0.1]:46437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo7lJ-0002Mm-Kk for submit@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fo7lH-0002MS-4g for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fo7l7-0006W9-VO for 32413@debbugs.gnu.org; Fri, 10 Aug 2018 09:47:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fo7l7-0006Vs-Qg; Fri, 10 Aug 2018 09:47:17 -0400 Original-Received: from [176.228.60.248] (port=1865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fo7l7-0003ss-9w; Fri, 10 Aug 2018 09:47:17 -0400 In-reply-to: <20180810125758.GD12819@zira.vinc17.org> (message from Vincent Lefevre on Fri, 10 Aug 2018 14:57:58 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149411 Archived-At: > Date: Fri, 10 Aug 2018 14:57:58 +0200 > From: Vincent Lefevre > Cc: 32413@debbugs.gnu.org > > > > Emacs should never create files/directories if the user hasn't > > > explicitly asked it to do that > > > > I don't agree with this principle, not in this general form. (The "in > > a directory owned by another user" part, to which I think I agree, as > > written, was not a qualification for this general statement, so it > > doesn't count for the purposes of the principle itself.) > > > > As just one random example of what Emacs "should never do", we write > > the customizations to a file "without the user's explicit request". > > I don't understand why there is anything to write if the user > hasn't customized anything. That was just an example of something that doesn't explicitly ask for writing a file. Another example is Eshell: when it exits, it writes files in the ~/.eshell directory. More generally, certain Emacs features might write files "without user explicitly asking" as part of providing some feature that needs to be persistent between sessions. I think that's quite allright, which is why I disagree with the general principle you were trying to establish. > And if the user introduces some customization, then this can be > regarded as an explicit write operation (due to the action of the > user in this sense). Well, in that case, let's regard user using dconf as an explicit write permission ;-) Seriously, though: if your principle can be subverted in some situations, then we need to define what situations are those. In particular, how is what you report different from what Eshell does on exit?