[tor-bugs] #22391 [Internal Services/Service - deb.tpo]: Add torrc.d configuration directory on deb packages

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 4 03:28:57 UTC 2017


#22391: Add torrc.d configuration directory on deb packages
-------------------------------------------------+-------------------------
 Reporter:  Jigsaw52                             |          Owner:  weasel
     Type:  enhancement                          |         Status:  new
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Service - deb.tpo  |        Version:  Tor:
                                                 |  0.3.1.1-alpha
 Severity:  Normal                               |     Resolution:
 Keywords:  deb torrc                            |  Actual Points:
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by iry):

 Although it has not been settled down on torrc.d will be implemented in
 Debian tor package, if it is the way as Jigsaw52's pull request, then
 there will be a potential problem:

 1. According to Jigsaw52's pull request, `%include /etc/torrc.d` will be
 added to `/usr/share/tor/tor-service-defaults-torrc`
 2. torrc files generated by users/applications go to `/etc/torrc.d`

 Then if the user used an application to generate a torrc file with a proxy
 config, let's say. And after a while, the proxy setting is no longer
 needed/valid, there is no obvious way to find previous settings. As a
 normal user, he/she may examine /etc/tor/torrc, but there will be no proxy
 settings, which may cause a confusing and frustrating debugging process.

 Therefore, Patrick proposed the following
 solution(http://phabricator.kkkkkkkkkk63ava6.onion/T699):

 > At the very top (?) of /etc/tor/torrc as per Debian's default should
 explain the .d folder set up by Debian (/usr/share/tor/tor-service-
 defaults-torrc`).
 >
 > /etc/tor/torrc as per Debian's default should discourage users
 modification of /etc/tor/torrc?
 >
 > And advice users to use /etc/torrc.d (or whatever folder(s) Debian will
 set up) since that won't throw dpkg interactive conflict resolution
 dialogs when /etc/tor/torrc gets modified by Debian?


 Do you think it will be a good solution? I am looking forward to a further
 discussion since it is a really important feature for Debian and its
 derivatives.

 Thank you very much!

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


More information about the tor-bugs mailing list