unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Guy Gascoigne-Piggford <guy@wyrdrune.com>
Cc: Lennart Borgman <lennart.borgman.073@student.lu.se>,
	emacs-devel@gnu.org, rms@gnu.org, Jason Rumney <jasonr@gnu.org>
Subject: Re: Some findings and suggestion about Emacs on w32
Date: Mon, 25 Oct 2004 02:00:41 -0700	[thread overview]
Message-ID: <417CC0B9.3030901@wyrdrune.com> (raw)
In-Reply-To: <m3oeircho3.fsf@kfs-l.imdomain.dk>

Well the way that gnuserve used to deal with this same issue was a) to 
have the option at build time of  unix domain sockets, internet sockets 
and SYSV messaging.

If you used internet sockets then it would read a file, by default 
~/gnu_secure or the like I think, and from that file read a list of IP 
addresses.  If the connecting host wasn't  listed in the file then the 
connection was refused. I seem to remember allowing 127.0.0.1 to be 
automatically authorised on NT, though it wasn't by default on Unix.

This looks like it deals with the security issue on a single user 
machine, but still leaves things open on a multi user one.

Perhaps the best solution is to make server-start work in such a way 
that it can not be connected to remotely, so leave it as is on Unix and 
make the NT version use tcp restricting connections to localhost only.  
Then provide something like server-start-net that uses tcp with a loaded 
list of authorised hosts for those people who want to use it over their 
network and understand the potential problems and required configuration.

Guy

Kim F. Storm wrote:

>Jason Rumney <jasonr@gnu.org> writes:
>
>  
>
>>Thanks. I think the main area that needs porting is the use of
>>unix domain sockets for communicating between emacsclient and the
>>server. I think there are some security issues with changing to
>>TCP or UDP sockets (this has been discussed in the past too), so
>>mailslots are probably the best replacement on Windows.
>>    
>>
>
>The problem with TCP is that it may allow access from other users on
>the same machine and from other machines in the network.
>
>But it is easy to avoid connections from other machines -- just
>use :host "127.0.0.1" when creating the emacs server socket, then
>it only listens for connections from the local host.
>
>And on windoze, I don't think there (typically) are that many
>other users active at the same time...
>
>Someone else pointed out that the use of a personal firewalls
>on Windows should be an problem for using TCP for emacs server.
>
>Actually, I think that it is an advantage, as the firewall will block
>external access to the emacs server (as an extra security), but not
>interfere with local access (to 127.0.0.1).
>
>If mailslots allow external access bypassing the firewall, I think
>that's a big problem speaking against mailslots.
>
>  
>

  reply	other threads:[~2004-10-25  9:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 22:24 Some findings and suggestion about Emacs on w32 Lennart Borgman
2004-10-22 23:47 ` Kim F. Storm
2004-10-23 13:01   ` Lennart Borgman
2004-10-24 22:23     ` Kim F. Storm
2004-10-24 22:44       ` Stefan
2004-10-24 22:58         ` Guy Gascoigne-Piggford
2004-10-24 23:36           ` Stefan
2004-10-24 23:44             ` Lennart Borgman
2004-10-24 22:57       ` Guy Gascoigne-Piggford
2004-10-25  7:13       ` David Kastrup
2004-10-25  8:13         ` Kim F. Storm
2004-10-25 16:50       ` Lennart Borgman
     [not found]         ` <m3sm 81q3ut.fsf@kfs-l.imdomain.dk>
2004-10-26  8:29         ` Kim F. Storm
2004-10-26 17:29           ` Lennart Borgman
2004-10-26 17:43             ` Jason Rumney
2004-10-26 17:54               ` Stephan Stahl
2004-10-26 17:58                 ` Lennart Borgman
2004-10-26 21:59                   ` Kim F. Storm
2004-10-26 23:03                     ` Lennart Borgman
2004-10-26 17:55               ` Lennart Borgman
2004-10-26 18:50             ` Guy Gascoigne - Piggford
2004-10-26 20:48               ` Lennart Borgman
2004-10-23 12:42 ` Benjamin Riefenstahl
2004-10-23 13:15   ` Lennart Borgman
2004-10-23 13:40     ` Benjamin Riefenstahl
2004-10-23 17:39   ` Jason Rumney
2004-10-24 18:39     ` Benjamin Riefenstahl
2004-10-24 20:02       ` Jason Rumney
2004-10-24 20:25         ` Lennart Borgman
2004-10-24 20:43           ` Jason Rumney
2004-10-24 22:01             ` Guy Gascoigne-Piggford
2004-10-23 13:54 ` Richard Stallman
2004-10-23 17:44   ` Jason Rumney
2004-10-23 18:58     ` Guy Gascoigne-Piggford
2004-10-24  1:17       ` Lennart Borgman
2004-10-24 12:14       ` Jason Rumney
2004-10-24 12:46         ` Kim F. Storm
2004-10-25  4:30           ` Dhruva Krishnamurthy
2004-10-25 20:28             ` Lennart Borgman
2004-10-24 22:06         ` Stefan
2004-10-25  8:42         ` Kim F. Storm
2004-10-25  9:00           ` Guy Gascoigne-Piggford [this message]
2004-10-25  9:29             ` Kim F. Storm
2004-10-25 10:42               ` Dhruva Krishnamurthy
2004-10-25 11:39               ` Stefan
2004-10-25 12:06                 ` Kim F. Storm
2004-10-25 12:25                   ` Stefan

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=417CC0B9.3030901@wyrdrune.com \
    --to=guy@wyrdrune.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    --cc=rms@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 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).