[Pkg-privacy-maintainers] Bug#979384: torsocks: accept() and listen() don't work for AF_INET6 even on localhost
Łukasz Stelmach
steelman at post.pl
Tue Jan 5 23:08:48 GMT 2021
Package: torsocks
Version: 2.3.0-2
Severity: normal
Control: forwarded -1 https://github.com/dgoulet/torsocks/pull/38
Control: tags -1 + patch
Dear Maintainer,
I was trying to forward a local TCP to a remote machine over a torified
ssh connection but I received the following messages
listen: Operation not permitted
listen [::1]:6331: Operation not permitted
There is a problem in the libtorsocks implementation of listen(),
accept() and accept4() functions. They use struct sockaddr to store
results of getsockname(2), but the structure is too small for IPv6
addresses and utils_sockaddr_is_localhost() is never true for AF_INET6
sockets.
-- System Information:
Debian Release: 10.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-13-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages torsocks depends on:
ii libc6 2.28-10
Versions of packages torsocks recommends:
ii tor 0.3.5.12-1
torsocks suggests no packages.
-- no debconf information
--
Miłego dnia,
Łukasz Stelmach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-maintainers/attachments/20210106/9d16da4f/attachment.sig>
More information about the Pkg-privacy-maintainers
mailing list