From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: emacsclient socket ownership
Date: Tue, 06 Nov 2018 12:54:22 -0500 [thread overview]
Message-ID: <jwvlg666qpt.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CAC45yQscPUCnHnDgNYJd0Az+ACN_H=Vyihj5_hAP1SwwomdBhw@mail.gmail.com
> There is no /run on macOS, and I'm pretty sure at least OpenBSD have
> rejected the idea.
It's OK: we can use OS-specific filenames.
And we'd want to preserve compatibility between old emacsclient and new
server.el and vice versa.
> Would not a better choice be to locate the socket at
> ${HOME}/.emacs.d/${something} instead?
That's another option, indeed.
IIRC it tends to work poorly when $HOME is on a network file system.
> At heart, I don't think this is really a security issue, so much as that
> root is the ultimate force for bypassing all protection in the Unix world.
> Without going to something akin to SELinux, or some similar MAC
> system, there isn't any way to prevent root accessing any socket, by
> design.
The problem is not Emacs trying to prevent root's emacsclient from
connecting, but root's emacsclient trying to avoid connecting
inadvertently to an attacker's socket.
Stefan
next prev parent reply other threads:[~2018-11-06 17:54 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 16:43 emacsclient socket ownership Glenn Morris
2018-11-02 15:38 ` Stefan Monnier
2018-11-02 16:53 ` Yuri Khan
2018-11-02 18:49 ` Stefan Monnier
2018-11-02 20:08 ` Paul Eggert
2018-11-02 20:30 ` Stefan Monnier
2018-11-02 21:06 ` Paul Eggert
2018-11-05 1:13 ` Glenn Morris
2018-11-05 4:46 ` Stefan Monnier
2018-11-05 7:26 ` Paul Eggert
2018-11-06 17:19 ` Daniel Pittman
2018-11-06 17:54 ` Stefan Monnier [this message]
2018-11-06 18:17 ` Paul Eggert
2018-11-13 18:21 ` Glenn Morris
2018-11-13 19:25 ` Eli Zaretskii
2018-11-05 5:12 ` Paul Eggert
2018-12-05 18:53 ` Michael Heerdegen
2018-12-05 19:38 ` Glenn Morris
2018-12-05 19:46 ` Eli Zaretskii
2018-12-05 20:02 ` Glenn Morris
2018-12-05 20:19 ` Eli Zaretskii
2018-12-06 0:36 ` Paul Eggert
2018-12-06 6:37 ` Eli Zaretskii
2018-12-06 19:08 ` Paul Eggert
2018-12-06 19:18 ` Eli Zaretskii
2018-12-06 20:26 ` Glenn Morris
2018-12-06 21:01 ` Paul Eggert
2018-12-05 20:33 ` Glenn Morris
2018-12-05 20:58 ` Michael Heerdegen
2018-12-06 0:49 ` Paul Eggert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlg666qpt.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.