[tor-bugs] #7952 [Tor]: Control port method to get the exit policy

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 23 14:00:10 UTC 2013


#7952: Control port method to get the exit policy
------------------------------------------+---------------------------------
 Reporter:  atagar                        |          Owner:                    
     Type:  enhancement                   |         Status:  new               
 Priority:  normal                        |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor                           |        Version:                    
 Keywords:  tor-relay easy small-feature  |         Parent:                    
   Points:                                |   Actualpoints:                    
------------------------------------------+---------------------------------
Changes (by nickm):

  * status:  needs_information => new


Comment:

 Replying to [comment:6 cypherpunks]:
 > Do we want `GETCONF ExitPolicy` to return an entire OR exit policy?
 Currently it returns only the value of `ExitPolicy` parameter in torrc.
 This seems to be consistent with the purpose of GETCONF command. Shouldn't
 the entire exit policy be retrievable via some other control port command?

 I would suggest a new instance of the GETINFO command; that's what is used
 for cases where we need to dump something that isn't a configuration
 value.

 > Suppose one has refactored the above refenced exit policy dumping code
 into standalone function. Where in control.c should this function be
 called?

 GETINFO is table-driven, according to the table in getinfo_items.  It also
 might help to read handle_control_getinfo and/or getinfo_helper_misc.

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


More information about the tor-bugs mailing list