From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: flag to use tor Date: Sat, 21 Nov 2020 00:04:48 -0500 Message-ID: References: <86ima4887k.fsf@163.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 21 06:05:38 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgL5e-0000gK-DW for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Nov 2020 06:05:38 +0100 Original-Received: from localhost ([::1]:51466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgL5d-00015y-Fr for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Nov 2020 00:05:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgL4v-0000ee-DU for emacs-devel@gnu.org; Sat, 21 Nov 2020 00:04:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51325) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgL4t-0004L6-4C; Sat, 21 Nov 2020 00:04:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kgL4q-0004AL-WF; Sat, 21 Nov 2020 00:04:49 -0500 In-Reply-To: <86ima4887k.fsf@163.com> (message from Zhu Zihao on Tue, 17 Nov 2020 20:43:27 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259511 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > If so, according to its README. Maybe you can use a shell wrapper to > launch emacs > #+BEGIN_SRC > #!/bin/sh > export LD_PRELOAD=/path/to/libtorsocks.so > exec -a "$0" emacs "$@" > #+END_SRC > Emacs, and its subprocess would inherit this environment variable and > allow torsocks to intercept network connection and force them in Tor. I tried a simpler version which simply runs Emacs (and GDB) under torsocks. At first it seemed to work. It worked for network sockets. But then I found operations that failed because they used local sockets. It seems that torsocks causes even local sockets to try to go via tor As a result, commands like invoking the browser (to tell the already-running browser instance to visit a certain URL) fail. Is there a wizard that knows a way to affect only network communication? -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)