From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: Some findings and suggestion about Emacs on w32 Date: Mon, 25 Oct 2004 07:39:39 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <008d01c4b886$32d07ff0$0200a8c0@sedrcw11488> <417AA9D8.6080600@wyrdrune.com> <417CC0B9.3030901@wyrdrune.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098704426 26757 80.91.229.6 (25 Oct 2004 11:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 11:40:26 +0000 (UTC) Cc: Guy Gascoigne-Piggford , Lennart Borgman , Jason Rumney , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 13:40:14 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CM3Cv-00046L-00 for ; Mon, 25 Oct 2004 13:40:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM3KZ-0003Do-94 for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 07:48:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM3KS-0003DJ-Be for emacs-devel@gnu.org; Mon, 25 Oct 2004 07:48:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM3KR-0003D3-RU for emacs-devel@gnu.org; Mon, 25 Oct 2004 07:48:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM3KR-0003Ch-Pf for emacs-devel@gnu.org; Mon, 25 Oct 2004 07:47:59 -0400 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM3CN-0002oD-Qi; Mon, 25 Oct 2004 07:39:40 -0400 Original-Received: from empanada.home ([67.71.35.140]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041025113938.VEWJ1580.simmts12-srv.bellnexxia.net@empanada.home>; Mon, 25 Oct 2004 07:39:38 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id 9694433B991; Mon, 25 Oct 2004 07:39:39 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 25 Oct 2004 11:29:33 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28895 > I don't think we need to do this for 21.4 -- as the fix is only used > on (mostly) single user windoze. I guess if it's only used on w32 and we only bind to 127.0.0.1, it'd be acceptable. But note that using a well-known port is a problem (we'd need to get it registered, ...). Better to let the OS choose the port and then store it in a file that emacsclient can read. At that point, adding a secret random key to it isn't that much extra work. > FYI- With a TCP socket, you can use (process-contact proc :remote) to > get the ip address of the remote client; you can then compare that to > the list of accepted addresses. [proc is the client process that is > created when emacsserver accepts the connection from the client]. IP-address based security (which ws used by `xhost') is *bad*. Don't go down that road. Stefan