]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 3 Nov 2021 13:53:31 +0000 (09:53 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'tor-gitlab/mr/477' into maint-0.4.5
David Goulet [Wed, 3 Nov 2021 13:52:03 +0000 (09:52 -0400)] 
Merge branch 'tor-gitlab/mr/477' into maint-0.4.5

3 years agorelay: Don't allow DirPort on non-IPv4
David Goulet [Tue, 2 Nov 2021 13:34:03 +0000 (09:34 -0400)] 
relay: Don't allow DirPort on non-IPv4

Our code doesn't allow it and so this prevents an assert() crash if the
DirPort is for instance IPv6 only.

Fixes #40494

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 3 Nov 2021 13:47:43 +0000 (09:47 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Wed, 3 Nov 2021 13:47:43 +0000 (09:47 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoshellcheck: Make it happy on couple scripts
David Goulet [Wed, 3 Nov 2021 13:47:30 +0000 (09:47 -0400)] 
shellcheck: Make it happy on couple scripts

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoAdd missing ponctuation.
Alexander Færøy [Tue, 2 Nov 2021 15:26:09 +0000 (15:26 +0000)] 
Add missing ponctuation.

3 years agoman: Missing OverloadStatistics option in tor.1
David Goulet [Tue, 2 Nov 2021 13:50:18 +0000 (09:50 -0400)] 
man: Missing OverloadStatistics option in tor.1

Closes #40504

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Fri, 29 Oct 2021 16:56:33 +0000 (16:56 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Fri, 29 Oct 2021 16:56:33 +0000 (16:56 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoFix Windows build.
Alexander Færøy [Fri, 5 Feb 2021 17:12:52 +0000 (17:12 +0000)] 
Fix Windows build.

While trying to resolve our CI issues, the Windows build broke with an
unused function error:

   src/test/test_switch_id.c:37:1: error: ‘unprivileged_port_range_start’
   defined but not used [-Werror=unused-function]

We solve this by moving the `#if !defined(_WIN32)` test above the
`unprivileged_port_range_start()` function defintion such that it is
included in its body.

This is an unreviewed commit.

See: tor#40275

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Fri, 29 Oct 2021 13:20:21 +0000 (09:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 29 Oct 2021 13:20:21 +0000 (09:20 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agochanges: Add file for ticket 26299
David Goulet [Fri, 29 Oct 2021 13:19:59 +0000 (09:19 -0400)] 
changes: Add file for ticket 26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 26299
David Goulet [Fri, 29 Oct 2021 13:19:21 +0000 (09:19 -0400)] 
changes: Add file for ticket 26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agomakefile: Add a reproducible dist make job
David Goulet [Thu, 28 Oct 2021 20:29:22 +0000 (16:29 -0400)] 
makefile: Add a reproducible dist make job

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agomakefile: Add a reproducible dist make job
David Goulet [Thu, 28 Oct 2021 20:29:22 +0000 (16:29 -0400)] 
makefile: Add a reproducible dist make job

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelease: Patches to make tarball reproducible
Alexander Færøy [Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)] 
release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 18:26:35 +0000 (14:26 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agochanges: Typo in file, wrong version was used
David Goulet [Thu, 28 Oct 2021 18:22:14 +0000 (14:22 -0400)] 
changes: Typo in file, wrong version was used

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelease: Patches to make tarball reproducible
Alexander Færøy [Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)] 
release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 14:38:20 +0000 (10:38 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoFix compilation on systems with older compilers.
Alexander Færøy [Thu, 10 Jun 2021 20:04:13 +0000 (20:04 +0000)] 
Fix compilation on systems with older compilers.

This patch fixes a build error with GCC 7.x which doesn't seem to accept
const int's as constants in macro initialization.

See: tpo/core/tor#40410

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 13:42:32 +0000 (09:42 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Thu, 28 Oct 2021 13:42:25 +0000 (09:42 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:41:56 +0000 (09:41 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:41:13 +0000 (09:41 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:40:50 +0000 (09:40 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 18:33:49 +0000 (14:33 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 18:33:49 +0000 (14:33 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoci: Missing source dir when parsing configure.ac version
David Goulet [Tue, 26 Oct 2021 18:33:31 +0000 (14:33 -0400)] 
ci: Missing source dir when parsing configure.ac version

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 15:31:28 +0000 (11:31 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump to 0.4.6.8-dev
David Goulet [Tue, 26 Oct 2021 15:31:24 +0000 (11:31 -0400)] 
version: Bump to 0.4.6.8-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 15:31:14 +0000 (11:31 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Bump to 0.4.5.11-dev
David Goulet [Tue, 26 Oct 2021 15:31:06 +0000 (11:31 -0400)] 
version: Bump to 0.4.5.11-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.3.5.17-dev
David Goulet [Tue, 26 Oct 2021 15:30:56 +0000 (11:30 -0400)] 
version: Bump to 0.3.5.17-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 13:17:58 +0000 (09:17 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 13:17:52 +0000 (09:17 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Bump to 0.4.6.8
David Goulet [Tue, 26 Oct 2021 13:17:01 +0000 (09:17 -0400)] 
version: Bump to 0.4.6.8

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.4.5.11
David Goulet [Tue, 26 Oct 2021 13:16:44 +0000 (09:16 -0400)] 
version: Bump to 0.4.5.11

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.3.5.17
David Goulet [Tue, 26 Oct 2021 13:16:13 +0000 (09:16 -0400)] 
version: Bump to 0.3.5.17

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 25 Oct 2021 21:02:55 +0000 (21:02 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoci: Exclude HSv2 Stem tests
David Goulet [Mon, 25 Oct 2021 17:37:38 +0000 (13:37 -0400)] 
ci: Exclude HSv2 Stem tests

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 21 Oct 2021 14:01:38 +0000 (10:01 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Thu, 21 Oct 2021 14:01:38 +0000 (10:01 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agofallbackdir: Regenerate the list for October 2021
David Goulet [Thu, 21 Oct 2021 13:13:40 +0000 (09:13 -0400)] 
fallbackdir: Regenerate the list for October 2021

Closes #40493

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Thu, 21 Oct 2021 12:35:36 +0000 (12:35 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/338' into maint-0.4.5
Alexander Færøy [Thu, 21 Oct 2021 12:35:26 +0000 (12:35 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/338' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 20 Oct 2021 21:47:26 +0000 (21:47 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 20 Oct 2021 21:47:17 +0000 (21:47 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoAnnounce URL to bridge status page when starting Tor as a bridge relay.
Alexander Færøy [Mon, 23 Nov 2020 23:41:17 +0000 (23:41 +0000)] 
Announce URL to bridge status page when starting Tor as a bridge relay.

This patch makes Tor announce the relay specific bridge status page URL
when Tor is starting up before bootstrap occours.

See: tor#30477

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 20 Oct 2021 17:36:07 +0000 (17:36 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 20 Oct 2021 17:36:06 +0000 (17:36 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoRemove unused function: dns_randfn_() in dns.c.
Alexander Færøy [Mon, 10 May 2021 13:07:24 +0000 (13:07 +0000)] 
Remove unused function: dns_randfn_() in dns.c.

This patch unbreaks the current build after tor!369 landed.

See: https://bugs.torproject.org/tpo/core/tor/40371

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/369' into maint-0.3.5
Alexander Færøy [Wed, 20 Oct 2021 17:35:35 +0000 (17:35 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/369' into maint-0.3.5

3 years agochanges: Add file for ticket 40491
David Goulet [Wed, 20 Oct 2021 13:15:51 +0000 (09:15 -0400)] 
changes: Add file for ticket 40491

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Add unit tests for DNS timeout overload state
David Goulet [Tue, 19 Oct 2021 19:07:11 +0000 (15:07 -0400)] 
test: Add unit tests for DNS timeout overload state

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelay: Overload state on DNS timeout is now X% over Y secs
David Goulet [Tue, 19 Oct 2021 18:13:33 +0000 (14:13 -0400)] 
relay: Overload state on DNS timeout is now X% over Y secs

With this commit, we will only report a general overload state if we've
seen more than X% of DNS timeout errors over Y seconds. Previous
behavior was to report when a single timeout occured which is really too
small of a threshold.

The value X is a consensus parameters called
"overload_dns_timeout_scale_percent" which is a scaled percentage
(factor of 1000) so we can represent decimal points for X like 0.5% for
instance. Its default is 1000 which ends up being 1%.

The value Y is a consensus parameters called
"overload_dns_timeout_period_secs" which is the time period for which
will gather DNS errors and once over, we assess if that X% has been
reached ultimately triggering a general overload signal.

Closes #40491

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs: Fix merge conflicts after merging forward 40476
David Goulet [Tue, 19 Oct 2021 14:55:29 +0000 (10:55 -0400)] 
hs: Fix merge conflicts after merging forward 40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 19 Oct 2021 14:35:35 +0000 (10:35 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 19 Oct 2021 14:29:15 +0000 (10:29 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agohs: Improve warning for bad service version
David Goulet [Thu, 14 Oct 2021 13:56:10 +0000 (09:56 -0400)] 
hs: Improve warning for bad service version

Now that we don't have version 2, it gives us:

  [warn] HiddenServiceVersion must be between 3 and 3, not 2.

This commit changes it to:

  [warn] HiddenServiceVersion must be 3, not 2.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 40476
David Goulet [Thu, 30 Sep 2021 15:21:13 +0000 (11:21 -0400)] 
changes: Add file for ticket 40476

Closes #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Don't run HSv2 Chutney test networks
David Goulet [Thu, 30 Sep 2021 15:12:46 +0000 (11:12 -0400)] 
test: Don't run HSv2 Chutney test networks

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Fix unit tests after disabling version 2
David Goulet [Thu, 30 Sep 2021 15:09:48 +0000 (11:09 -0400)] 
test: Fix unit tests after disabling version 2

Some tests were removed because they were testing something not usable
anymore.

Some tests remains to make sure that things are indeed disabled.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs: Improve warning for bad service version
David Goulet [Thu, 14 Oct 2021 13:56:10 +0000 (09:56 -0400)] 
hs: Improve warning for bad service version

Now that we don't have version 2, it gives us:

  [warn] HiddenServiceVersion must be between 3 and 3, not 2.

This commit changes it to:

  [warn] HiddenServiceVersion must be 3, not 2.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 40476
David Goulet [Thu, 30 Sep 2021 15:21:13 +0000 (11:21 -0400)] 
changes: Add file for ticket 40476

Closes #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Don't run HSv2 Chutney test networks
David Goulet [Thu, 30 Sep 2021 15:12:46 +0000 (11:12 -0400)] 
test: Don't run HSv2 Chutney test networks

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Fix unit tests after disabling version 2
David Goulet [Thu, 30 Sep 2021 15:09:48 +0000 (11:09 -0400)] 
test: Fix unit tests after disabling version 2

Some tests were removed because they were testing something not usable
anymore.

Some tests remains to make sure that things are indeed disabled.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 HSPOST and HSFETCH command
David Goulet [Tue, 19 Oct 2021 13:20:53 +0000 (09:20 -0400)] 
hs-v2: Disable version 2 HSPOST and HSFETCH command

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 directory
David Goulet [Thu, 30 Sep 2021 14:46:17 +0000 (10:46 -0400)] 
hs-v2: Disable version 2 directory

Relay do not accept both stores and lookups of version 2 descriptor.
This effectively disable version 2 HSDir supports for relays.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'ticket40476_045_01' into ticket40476_046_01
David Goulet [Tue, 19 Oct 2021 13:48:13 +0000 (09:48 -0400)] 
Merge branch 'ticket40476_045_01' into ticket40476_046_01

3 years agohs: Improve warning for bad service version
David Goulet [Thu, 14 Oct 2021 13:56:10 +0000 (09:56 -0400)] 
hs: Improve warning for bad service version

Now that we don't have version 2, it gives us:

  [warn] HiddenServiceVersion must be between 3 and 3, not 2.

This commit changes it to:

  [warn] HiddenServiceVersion must be 3, not 2.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 40476
David Goulet [Thu, 30 Sep 2021 15:21:13 +0000 (11:21 -0400)] 
changes: Add file for ticket 40476

Closes #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Don't run HSv2 Chutney test networks
David Goulet [Thu, 30 Sep 2021 15:12:46 +0000 (11:12 -0400)] 
test: Don't run HSv2 Chutney test networks

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agotest: Fix unit tests after disabling version 2
David Goulet [Thu, 30 Sep 2021 15:09:48 +0000 (11:09 -0400)] 
test: Fix unit tests after disabling version 2

Some tests were removed because they were testing something not usable
anymore.

Some tests remains to make sure that things are indeed disabled.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 HSPOST and HSFETCH command
David Goulet [Tue, 19 Oct 2021 13:20:53 +0000 (09:20 -0400)] 
hs-v2: Disable version 2 HSPOST and HSFETCH command

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 directory
David Goulet [Thu, 30 Sep 2021 14:46:17 +0000 (10:46 -0400)] 
hs-v2: Disable version 2 directory

Relay do not accept both stores and lookups of version 2 descriptor.
This effectively disable version 2 HSDir supports for relays.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 introduction point
David Goulet [Thu, 30 Sep 2021 14:40:19 +0000 (10:40 -0400)] 
hs-v2: Disable version 2 introduction point

Upon receiving a v2 introduction request, the relay will close the
circuit and send back a tor protocol error.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 service
David Goulet [Tue, 19 Oct 2021 13:11:12 +0000 (09:11 -0400)] 
hs-v2: Disable version 2 service

The minimum service version is raised from 2 to 3 which effectively
disable loading or creating an onion service v2.

As for ADD_ONION, for version 2, a 551 error is returned:

  "551 Failed to add Onion Service"

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable SOCKS connection for v2 addresses
David Goulet [Thu, 30 Sep 2021 14:26:37 +0000 (10:26 -0400)] 
hs-v2: Disable SOCKS connection for v2 addresses

This effectively turns off the ability of tor to use HSv2 as a client by
invalidating the v2 onion hostname passed through a SOCKS request.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 6 Oct 2021 19:45:19 +0000 (15:45 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/392' into maint-0.4.5
David Goulet [Wed, 6 Oct 2021 19:45:13 +0000 (15:45 -0400)] 
Merge branch 'tor-gitlab/mr/392' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 6 Oct 2021 19:41:17 +0000 (15:41 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/393' into maint-0.4.5
David Goulet [Wed, 6 Oct 2021 19:41:12 +0000 (15:41 -0400)] 
Merge branch 'tor-gitlab/mr/393' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 6 Oct 2021 19:35:43 +0000 (15:35 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/420' into maint-0.4.5
David Goulet [Wed, 6 Oct 2021 19:35:30 +0000 (15:35 -0400)] 
Merge branch 'tor-gitlab/mr/420' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 6 Oct 2021 17:25:02 +0000 (13:25 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agohs-v2: Only log once the connection warning to v2
David Goulet [Mon, 4 Oct 2021 18:36:05 +0000 (14:36 -0400)] 
hs-v2: Only log once the connection warning to v2

Closes #40474

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Only log once the connection warning to v2
David Goulet [Mon, 4 Oct 2021 18:38:50 +0000 (14:38 -0400)] 
hs-v2: Only log once the connection warning to v2

Closes #40474

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 HSPOST and HSFETCH command
David Goulet [Thu, 30 Sep 2021 14:59:24 +0000 (10:59 -0400)] 
hs-v2: Disable version 2 HSPOST and HSFETCH command

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 directory
David Goulet [Thu, 30 Sep 2021 14:46:17 +0000 (10:46 -0400)] 
hs-v2: Disable version 2 directory

Relay do not accept both stores and lookups of version 2 descriptor.
This effectively disable version 2 HSDir supports for relays.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 introduction point
David Goulet [Thu, 30 Sep 2021 14:40:19 +0000 (10:40 -0400)] 
hs-v2: Disable version 2 introduction point

Upon receiving a v2 introduction request, the relay will close the
circuit and send back a tor protocol error.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable version 2 service
David Goulet [Thu, 30 Sep 2021 14:32:05 +0000 (10:32 -0400)] 
hs-v2: Disable version 2 service

The minimum service version is raised from 2 to 3 which effectively
disable loading or creating an onion service v2.

As for ADD_ONION, for version 2, a 551 error is returned:

  "551 Failed to add Onion Service"

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agohs-v2: Disable SOCKS connection for v2 addresses
David Goulet [Thu, 30 Sep 2021 14:26:37 +0000 (10:26 -0400)] 
hs-v2: Disable SOCKS connection for v2 addresses

This effectively turns off the ability of tor to use HSv2 as a client by
invalidating the v2 onion hostname passed through a SOCKS request.

Part of #40476

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Mon, 13 Sep 2021 17:34:48 +0000 (13:34 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Mon, 13 Sep 2021 17:34:44 +0000 (13:34 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoOnly check for bindable ports if we are unsure if it will fail.
Alexander Færøy [Thu, 4 Feb 2021 23:11:11 +0000 (23:11 +0000)] 
Only check for bindable ports if we are unsure if it will fail.

We currently assume that the only way for Tor to listen on ports in the
privileged port range (1 to 1023), on Linux, is if we are granted the
NET_BIND_SERVICE capability. Today on Linux, it's possible to specify
the beginning of the unprivileged port range using a sysctl
configuration option. Docker (and thus the CI service Tor uses) recently
changed this sysctl value to 0, which causes our tests to fail as they
assume that we should NOT be able to bind to a privileged port *without*
the NET_BIND_SERVICE capability.

In this patch, we read the value of the sysctl value via the /proc/sys/
filesystem iff it's present, otherwise we assume the default
unprivileged port range begins at port 1024.

See: tor#40275

3 years agoUse Debian bullseye for our hardened build.
Alexander Færøy [Mon, 16 Aug 2021 13:52:58 +0000 (13:52 +0000)] 
Use Debian bullseye for our hardened build.

3 years agoForce amd64 for CI builds.
Alexander Færøy [Mon, 13 Sep 2021 16:05:58 +0000 (18:05 +0200)] 
Force amd64 for CI builds.