From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Trent W. Buck" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Host name for su(do)? (was: Tramp 2.0 -> 2.1 migration woes) Date: Tue, 29 Jan 2008 02:46:32 +1100 Message-ID: <20080128154630.GA2378@Clio.twb.ath.cx> References: <20080127040051.GA16241@Clio.twb.ath.cx> <87myqrfh8y.fsf@gmx.de> <20080128023016.GB3075@Clio.twb.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1972347756==" X-Trace: ger.gmane.org 1201535241 26922 80.91.229.12 (28 Jan 2008 15:47:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 15:47:21 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 16:47:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJWCf-0004rk-5y for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 16:47:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJWCE-0007AR-9f for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 10:46:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJWC9-00078v-IS for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:46:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJWC8-000782-4v for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:46:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJWC7-00077r-T1 for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:46:47 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJWC8-0003LI-52 for emacs-devel@gnu.org; Mon, 28 Jan 2008 10:46:48 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JJWC7-0001Yt-AY for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:46:47 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JJWC4-0003Ju-QH for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:46:47 -0500 Original-Received: from ipmail01.adl6.internode.on.net ([203.16.214.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJWC4-0003Ha-62 for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 10:46:44 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAP+HnUd5LOnP/2dsb2JhbACBWJAkmT8 X-IronPort-AV: E=Sophos;i="4.25,260,1199626200"; d="asc'?scan'208";a="30355119" Original-Received: from ppp121-44-233-207.lns2.mel4.internode.on.net (HELO Clio.twb.ath.cx) ([121.44.233.207]) by ipmail01.adl6.internode.on.net with ESMTP; 29 Jan 2008 02:16:32 +1030 In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87713 gmane.emacs.pretest.bugs:20791 Archived-At: --===============1972347756== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 28, 2008 at 03:50:16PM +0100, Michael Albinus wrote: > >> The appended patch shall fix it. Could you, please, test? > > > > Yes, that seems to work, but I would extend the whitelist: > > > > - The class A network 127.0.0.0/8 > > - The unqualified system name (e.g. Clio instead of Clio.twb.ath.cx) > > - The comparison should be case-insensitive. > > > > Obviously this whitelist will never be perfect, e.g. if "mail" is a > > CNAME alias in on the DNS server for the local host, /sudo:mail: is > > meaningful but it would be hard to catch that. >=20 > The typical use case for "su" and "sudo" are file names like > "/sudo::/file". Therefore, I don't believe we shall invest too much > in the whitelist. Fair enough. > "127.0.0.1" as host name doesn't seem to be needed; if > somebody uses it, s?he will be taught not to do. Hee hee, I only learnt to use 127.0.0.1 because Emacs 22 / TRAMP 2.0 wasn't working with /multi:ssh:twb@foo:sudo:root@localhost:/ but it was with 127.0.0.1. > `system-name' will mostly the unqualified system name I believe, so it > is already compliant to your request. Or am I wrong? On my system, system-name is the FQDN. Assuming system-name is what the default frame-title-format uses, this has been the case for as long as I can remember (back to Emacs 21). --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnfjWLpef9iTtxAYRAgaEAJ4m0Jt0oljclbvribYBW9f1mNpKcwCgxyij A78unUJ6mphTdgKFpxL7ts0= =BwI5 -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- --===============1972347756== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1972347756==--