[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #8291 [Tor]: configuration file and folder /etc/torrc + /etc/tor.d/
#8291: configuration file and folder /etc/torrc + /etc/tor.d/
------------------------+--------------------------------
Reporter: proper | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.5.x-final
Component: Tor | Version:
Resolution: | Keywords: tor-client
Actual Points: | Parent ID:
Points: |
------------------------+--------------------------------
Comment (by proper):
Replying to [comment:2 nickm]:
> Some quick thoughts:
> * Changing the *default* search path for torrc is probably not a
great idea; it would break anybody who is using the current default
location.
Sorry for suggesting it.
> * Having a tor.d directory is an okay idea. You'll need a fairly
rigorous definition of what order the files in it are read, and how they
interact with torrc and the defaults_torrc (if any). (Make sure you
understand how the defaults-torrc logic works here before designing
anything; make sure it can be reused.)
I think this way would be good:
defaults_torrc gets overruled by /etc/tor/torrc gets overruled by
/etc/tor.d/10_something gets overruled by /etc/tor.d/20_somethingelse.
The same in other words:
defaults_torrc: lowest priority
/etc/tor/torrc: normal priority
/etc/tor/tor.d: highest priority
Sourcing /etc/tor.d/ in lexical order, i.e. first source
/etc/tor.d/10_something, then source /etc/tor.d/20_somethingelse. If
/etc/tor.d/10_something contains "CookieAuthentication 0" and
/etc/tor.d/20_somethingelse contains "CookieAuthentication 1", then
"CookieAuthentication 1" will win.
This is the way it usually works on Linux for folders such as
/etc/profile.d, and the run-parts(8) tool works the same way.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8291#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs