[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flag to use tor
From: |
Tomas Hlavaty |
Subject: |
Re: flag to use tor |
Date: |
Sun, 22 Nov 2020 17:01:59 +0100 |
On Tue 17 Nov 2020 at 20:43, Zhu Zihao <all_but_last@163.com> wrote:
> #!/bin/sh
> export LD_PRELOAD=/path/to/libtorsocks.so
> exec -a "$0" emacs "$@"
> [...]
> Emacs, and its subprocess would inherit this environment variable and
> allow torsocks to intercept network connection and force them in Tor.
what if something (e.g. a script) sets the LD_PRELOAD variable to
something different? would it defeat torsocks? do i need to inspect
all such subprocesses and ensure that they use the right LD_PRELOAD
value?