From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: expressions
Date: 06 Jan 2003 01:49:41 +0100 [thread overview]
Message-ID: <5xwuljje56.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <m3isx3cqwq.fsf@woof.play-bow.org>
Bob Halley <halley@play-bow.org> writes:
> Richard Stallman <rms@gnu.org> writes:
>
> > This is a useful feature. I have a security question for the people
> > on emacs-devel who support non-GNU-like platforms. server.el sets up
> > mode 0700 for the socket. Is that sufficient security, on all
> > platforms, to make it safe to install this feature?
>
> No, it is not safe. On Solaris, at least as recent as Solaris 8, the
> file permissions on UNIX domain sockets are totally ignored. This may
> be true on other platforms as well, though many platforms "do the
> right thing" and check file permissions.
Currently, server.el places the socket in /tmp/esrv<UID>-<HOST>
I've always wondered why the socket wasn't placed in $HOME.
>
> The standard way of dealing with this portably is to create a
> directory for the socket filename to live in, and control access via
> permissions on the directory.
Maybe we should create a directory "~/.esrv" (if it doesn't exist),
check that it is owned by the current user (fail to start server if
not), make it 700, and then create the server socket (e.g. named
`server') in that directory.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2003-01-06 0:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-02 20:48 Suggested enhancement: allow emacsclient to send arbitrary LISP expressions tytso
2003-01-05 18:34 ` expressions Richard Stallman
2003-01-05 19:55 ` expressions Bob Halley
2003-01-06 0:49 ` Kim F. Storm [this message]
2003-01-06 1:55 ` expressions Bob Halley
2003-01-06 20:06 ` expressions chad
2003-01-06 20:32 ` expressions Bob Halley
2003-01-07 10:11 ` expressions Kim F. Storm
2003-01-07 19:23 ` expressions Luc Teirlinck
2003-01-11 19:48 ` expressions Stefan Monnier
2003-01-07 10:14 ` expressions Kai Großjohann
2003-01-06 17:13 ` expressions Richard Stallman
2003-01-06 20:37 ` expressions Bob Halley
2003-01-08 21:00 ` expressions Andreas Schwab
2003-01-07 11:53 ` expressions Theodore Ts'o
2003-01-08 8:00 ` expressions Richard Stallman
2003-01-11 19:47 ` expressions Stefan Monnier
2003-01-08 13:50 ` Suggested enhancement: allow emacsclient to send arbitrary LISP expressions Kim F. Storm
2003-01-09 23:13 ` Richard Stallman
2003-01-13 21:08 ` Theodore Ts'o
2003-01-14 18:55 ` Richard Stallman
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=5xwuljje56.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--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.