Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: Adding support for mirrors on the Tor network.
To:
David Uhden Collado <david@uhden.dev>
Cc:
tech@openbsd.org
Date:
Wed, 19 Mar 2025 10:09:15 +0000

Download raw body.

Thread
On 2025/03/19 08:56, David Uhden Collado wrote:
> 
> > > - A section has been added to the manual page (installurl.5) stating that
> > > using Tor mirrors requires the net/tor and net/torsocks ports to be
> > > installed and the Tor daemon to be running.
> > 
> > Adding something to base that relies on the torsocks LD_PRELOAD wrapper
> > for use with ftp(1) (which uses pledge) is not ideal.
> 
> It is not the only feature in the base system that depends on a port to
> work. In the Xsetup_0 script that xenodm uses [1], there is a function that
> depends on the graphics/openbsd-backgrounds port to work. In this case it is
> commented out but I don't know how I could do that in my case.
> 
> References:
> [1]: https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/xenocara/app/xenodm/config/Xsetup_0.in?rev=1.1&content-type=text/plain

That's just a bunch of image files.

No interaction with programs which intentionally restrict syscall access
via pledge (i.e. ftp) and overriding the libc functions which they use
with an LD_PRELOAD wrapper.

> > Isn't there some way it can be done via tor's HTTPTunnelPort and setting
> > http_proxy in the environment rather than modifying the scripts?

?