From: Zhu Zihao <all_but_last@163.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: flag to use tor
Date: Tue, 17 Nov 2020 20:43:27 +0800 [thread overview]
Message-ID: <86ima4887k.fsf@163.com> (raw)
In-Reply-To: <E1ketIz-0008Np-C3@fencepost.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]
What's is torsocks? Is this one?
https://github.com/dgoulet/torsocks
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.
Richard Stallman writes:
> [[[ 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. ]]]
>
> Many Emacs commands connect to internet sites for various reasons.
> vc does so, M-x irc does so, and I don't know how much else.
>
> I want to connect through Tor all the time, but sometimes these
> commands betray me. I added a switch to VC to make it connect
> through Tor always, but it would be good to have a facility that
> would do this to all internet connections that Emacs packages make.
>
> Some packages connect directly in Lisp. and some connect by running
> subprocesses. For the subprocesses, using 'torsocks' is an easy fix.
> The hard part is to change all the packages that need fixing.
>
> A super-simple approach is to have a switch with two settings: Tor, or
> not Tor. A more complex feature would give a systematic way to
> specify exceptions.
>
> What do people think?
--
Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp
Zihao
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]
next prev parent reply other threads:[~2020-11-17 12:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-17 5:13 flag to use tor Richard Stallman
2020-11-17 5:30 ` Jean Louis
2020-11-17 6:31 ` Max Zettlmeißl
2020-11-17 7:59 ` Colin Baxter
2020-11-17 8:34 ` Colin Baxter
2020-11-17 12:43 ` Zhu Zihao [this message]
2020-11-21 5:04 ` Richard Stallman
2020-11-23 9:33 ` Robert Pluim
2020-11-24 5:53 ` Richard Stallman
2020-11-22 16:01 ` Tomas Hlavaty
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=86ima4887k.fsf@163.com \
--to=all_but_last@163.com \
--cc=emacs-devel@gnu.org \
--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).