[Whonix-devel] #25140 [Core Tor/Tor]: Parse only .torrc files in torrc.d directory

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 8 00:28:55 CET 2018

#25140: Parse only .torrc files in torrc.d directory
 Reporter:  iry           |          Owner:  (none)
     Type:  task          |         Status:  new
 Priority:  High          |      Milestone:  Tor: 0.3.4.x-final
Component:  Core Tor/Tor  |        Version:  Tor:
 Severity:  Major         |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
Changes (by Jigsaw52):

 * cc: danielpinto52@… (added)


 I agree that supporting wildcards in %includes would be a nice feature. I
 remember looking for code for processing wildcards in files in tor and not
 finding any so this might take some effort to develop.

 If someone wants to take on this, the relevant changes are on

 In this file, there is a method config_process_include which is called for
 every %include found and receives the string after %include as first
 This method then calls config_get_file_list which is responsible for
 returning a list of files to be processed for that %include line. Note
 that config_get_file_list does not care about recursive includes, it just
 returns a list of files in a folder if the included path was a folder or a
 list with a single file if it was a file.

 So, the only existing method that needs changes to support this is

Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25140#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the Whonix-devel mailing list