unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vincent Lefevre <vincent@vinc17.net>
Cc: 32413@debbugs.gnu.org
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	[thread overview]
Message-ID: <83va8imize.fsf@gnu.org> (raw)
In-Reply-To: <20180810125758.GD12819@zira.vinc17.org> (message from Vincent Lefevre on Fri, 10 Aug 2018 14:57:58 +0200)

> Date: Fri, 10 Aug 2018 14:57:58 +0200
> From: Vincent Lefevre <vincent@vinc17.net>
> 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?





  reply	other threads:[~2018-08-10 13:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-10  9:30 bug#32413: 25.2; When run as root, emacs writes dconf files in a non-root user's /run/user/XXX directory Vincent Lefevre
2018-08-10 12:17 ` Eli Zaretskii
2018-08-10 12:57   ` Vincent Lefevre
2018-08-10 13:47     ` Eli Zaretskii [this message]
2018-08-10 14:32       ` Vincent Lefevre
2018-08-10 15:41         ` Glenn Morris
2018-08-10 15:53           ` Vincent Lefevre
2018-08-12 17:31             ` Noam Postavsky
2018-08-12 22:03               ` Andreas Schwab
2018-08-12 23:45             ` Glenn Morris
2018-08-10 19:39           ` Eli Zaretskii
2018-08-10 12:28 ` Noam Postavsky
2018-08-10 12:39   ` Eli Zaretskii
2018-08-12 17:28     ` Noam Postavsky
2018-08-10 14:17   ` Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83va8imize.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=32413@debbugs.gnu.org \
    --cc=vincent@vinc17.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).