[tor-bugs] #17183 [Tor]: Add exit-policy/reject-private so stem can discover ExitPolicyRejectPrivate rules

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 20 00:13:48 UTC 2015


#17183: Add exit-policy/reject-private so stem can discover ExitPolicyRejectPrivate
rules
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:
     Type:  enhancement                          |         Status:
 Priority:  Medium                               |  needs_review
Component:  Tor                                  |      Milestone:  Tor:
 Severity:  Normal                               |  0.2.8.x-final
 Keywords:  stem, 028-triaged,                   |        Version:  Tor:
  TorCoreTeam201512                              |  unspecified
Parent ID:                                       |     Resolution:
  Sponsor:                                       |  Actual Points:
                                                 |         Points:  small
-------------------------------------------------+-------------------------

Comment (by teor):

 Replying to [comment:11 nickm]:
 > re 236d74869ff68fd88553ce170f4784b3a9d761a7 : it looks like this logic
 is duplicated with the code that actually builds the list of addresses
 rejected in the exit policies.  Should it be unified?

 Please see my branch getinfo-private-exitpolicy-v4.

 I squashed the branch (including the squash in bug17027-reject-
 private-027-v6), and left a standard fixup implementing these changes as
 the final commit. (If you've reviewed the v3 branch, you only need review
 the final commit.)

 It creates 3 utility functions for adding addresses from a tor_addr_t*,
 uint32 ipv4h, and or_options (outbound bind addresses). Naturally, these
 functions call each other as appropriate.

 policies_parse_exit_policy_from_options and getinfo_helper_policies then
 call these functions as appropriate to add addresses to the smartlist.

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


More information about the tor-bugs mailing list